Esempio n. 1
0
def delete_backup_storage(http_server_ip, backup_storage_uuid, session_uuid=None):
    action = api_actions.DeleteBackupStorageAction()
    action.uuid = backup_storage_uuid
    action.timeout = 6000000
    test_util.action_logger('Delete Backup Storage [uuid:] %s' % backup_storage_uuid)
    evt = execute_action_with_session(http_server_ip, action, session_uuid)
    return evt.inventory
Esempio n. 2
0
def delete_backup_storage(backup_storage_uuid, session_uuid=None):
    '''
    Delete BS will delete all images
    '''
    action = api_actions.DeleteBackupStorageAction()
    action.uuid = backup_storage_uuid
    action.timeout = 6000000
    test_util.action_logger('Delete Backup Storage [uuid:] %s' % backup_storage_uuid)
    evt = account_operations.execute_action_with_session(action, session_uuid)
    return evt.inventory