Skip to content

Commit 0610204

Browse files
authored
Merge pull request openmsa#55 from openmsa/ccla1.1/MSA-11664/hto
tweak Permission Profile
2 parents bc65728 + bd74e8d commit 0610204

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

msa_sdk/conf_profile.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ def create(self) -> None:
7474
self.action = 'Create configuration profile'
7575
self.path = f"{self.api_path}/v2/{self.customer_id}"
7676
params = {
77-
"id": self.profile_id,
7877
"name": self.name,
7978
"externalReference": self.externalReference,
8079
"comment": self.comment,
@@ -89,6 +88,7 @@ def create(self) -> None:
8988
"attachedManagedEntities": self.attachedManagedEntities
9089
}
9190
self._call_post(params)
91+
return json.loads(self.content)
9292

9393
def read(self) -> str:
9494
"""
@@ -119,7 +119,7 @@ def read(self) -> str:
119119
self.attachedManagedEntities = conf_profile['attachedManagedEntities']
120120
self.customer_id = conf_profile['customerIds'][0]
121121

122-
return self.content
122+
return json.loads(self.content)
123123

124124
def update(self) -> str:
125125
"""
@@ -150,7 +150,7 @@ def update(self) -> str:
150150
}
151151
self._call_put(json.dumps(data))
152152

153-
return self.content
153+
return json.loads(self.content)
154154

155155
def delete(self) -> None:
156156
"""

0 commit comments

Comments
 (0)