Merge "Enable include_rules option for library policy"
This commit is contained in:
commit
a8ec6c8525
@ -89,9 +89,10 @@ class Client(object):
|
|||||||
self.library_policy_path % policy)
|
self.library_policy_path % policy)
|
||||||
return body
|
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(
|
resp, body = self.httpclient.get(
|
||||||
self.library_policy_path % policy)
|
(self.library_policy_path % policy) + query)
|
||||||
return body
|
return body
|
||||||
|
|
||||||
def create_policy_rule(self, policy_name, body=None):
|
def create_policy_rule(self, policy_name, body=None):
|
||||||
@ -125,8 +126,9 @@ class Client(object):
|
|||||||
resp, body = self.httpclient.get(self.policies)
|
resp, body = self.httpclient.get(self.policies)
|
||||||
return body
|
return body
|
||||||
|
|
||||||
def list_library_policy(self):
|
def list_library_policy(self, include_rules=True):
|
||||||
resp, body = self.httpclient.get(self.library_policies)
|
query = "?include_rules=%s" % include_rules
|
||||||
|
resp, body = self.httpclient.get(self.library_policies + query)
|
||||||
return body
|
return body
|
||||||
|
|
||||||
def list_policy_tables(self, policy_name):
|
def list_policy_tables(self, policy_name):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user