Beispiel #1
0
def get_all_migrations(ctxt, inactive=0):
    """Get all non-deleted source hypervisors.

    Pass true as argument if you want deleted sources returned also.
    """
    check_policy(ctxt, 'get_all_migrations')
    return db.migration_get_all(ctxt, inactive)
def get_all_migrations(ctxt, inactive=0):
    """Get all non-deleted source hypervisors.

    Pass true as argument if you want deleted sources returned also.
    """
    check_policy(ctxt, 'get_all_migrations')
    return db.migration_get_all(ctxt, inactive)
Beispiel #3
0
 def get_all(cls, context, marker=None, limit=None, sort_keys=None,
             sort_dirs=None, filters=None, offset=None):
     migrations = db.migration_get_all(context, marker, limit,
                                       sort_keys=sort_keys,
                                       sort_dirs=sort_dirs,
                                       filters=filters, offset=offset)
     return base.obj_make_list(context, cls(context), objects.Migration,
                               migrations)
Beispiel #4
0
 def get_all(cls, context, filters=None):
     migrations = db.migration_get_all(context, filters)
     return base.obj_make_list(context, cls(context), objects.Migration,
                               migrations)
Beispiel #5
0
 def get_all(cls, context, filters=None):
     migrations = db.migration_get_all(context, filters)
     return base.obj_make_list(context, cls(context), objects.Migration,
                               migrations)