We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d17fce commit 625402bCopy full SHA for 625402b
sdcclient/_secure.py
@@ -719,6 +719,8 @@ def add_policy_json(self, policy_json):
719
720
try:
721
policy_obj = json.loads(policy_json)
722
+ if "origin" in policy_obj:
723
+ del policy_obj["origin"]
724
except Exception as e:
725
return [False, "policy json is not valid json: {}".format(str(e))]
726
@@ -786,6 +788,8 @@ def update_policy_json(self, policy_json):
786
788
'''
787
789
790
791
792
793
794
795
0 commit comments