Enable policy_get_by_short_id() to show deleted

This commit is contained in:
tengqm
2015-02-28 13:48:12 +08:00
parent 87f9d6208c
commit 2661565743
2 changed files with 6 additions and 4 deletions

View File

@@ -595,8 +595,9 @@ def policy_get_by_name(context, name, show_deleted=False):
show_deleted=show_deleted)
def policy_get_by_short_id(context, short_id):
return query_by_short_id(context, models.Policy, short_id)
def policy_get_by_short_id(context, short_id, show_deleted=False):
return query_by_short_id(context, models.Policy, short_id,
show_deleted=show_deleted)
def policy_get_all(context, limit=None, marker=None, sort_keys=None,