Fix policy upload
This commit is contained in:
parent
075b8767e6
commit
ea2eb1172f
|
@ -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())
|
||||||
|
|
Loading…
Reference in New Issue