Enable include_rules option for library policy
This commit enables 'include_rules' option for library policies in client lib Depends-On: Ib27119ba03d5658ff937f514f6ff3abfe5c390fe Change-Id: I2271579f655481b156ec66382d887b8784b13ad6
This commit is contained in:
parent
e85eafe5d5
commit
5c101cbd8a
@ -90,9 +90,10 @@ class Client(object):
|
||||
self.library_policy_path % policy)
|
||||
return body
|
||||
|
||||
def show_library_policy(self, policy):
|
||||
def show_library_policy(self, policy, include_rules=True):
|
||||
query = "?include_rules=%s" % include_rules
|
||||
resp, body = self.httpclient.get(
|
||||
self.library_policy_path % policy)
|
||||
(self.library_policy_path % policy) + query)
|
||||
return body
|
||||
|
||||
def create_policy_rule(self, policy_name, body=None):
|
||||
@ -126,8 +127,9 @@ class Client(object):
|
||||
resp, body = self.httpclient.get(self.policies)
|
||||
return body
|
||||
|
||||
def list_library_policy(self):
|
||||
resp, body = self.httpclient.get(self.library_policies)
|
||||
def list_library_policy(self, include_rules=True):
|
||||
query = "?include_rules=%s" % include_rules
|
||||
resp, body = self.httpclient.get(self.library_policies + query)
|
||||
return body
|
||||
|
||||
def list_policy_tables(self, policy_name):
|
||||
|
Loading…
x
Reference in New Issue
Block a user