def main(server_id, image_name):
    lib.connect(config.RS_USER, config.RS_KEY)
    server = lib.server_details({'id': int(server_id)})
    logging.info('Creating image from server %s' % (server['name'],))
    data = lib.image_create(server, image_name)
    logging.info('  Id of new image: %d' % (data['id'],))
Beispiel #2
0
def main(server_id):
    lib.connect(config.RS_USER, config.RS_KEY)
    server = lib.server_details({'id': int(server_id)})
    logging.info(server)