Fix policy upload
This commit is contained in:
@ -18,7 +18,7 @@ class Policy(HSAPICall):
|
|||||||
response = self.call('get')
|
response = self.call('get')
|
||||||
return v1Policy(**response.json())
|
return v1Policy(**response.json())
|
||||||
|
|
||||||
def put(self, data: v1Policy) -> v1Policy:
|
def put(self, data: str) -> v1Policy:
|
||||||
policy_txt = v1PutPolicyResponse(policy=data.json)
|
policy_txt = v1PutPolicyResponse(policy=data)
|
||||||
response = self.call('put', data=policy_txt)
|
response = self.call('put', data=policy_txt)
|
||||||
return v1Policy(**response.json())
|
return v1Policy(**response.json())
|
||||||
|
Reference in New Issue
Block a user