Skip to content

Commit bda4504

Browse files
flaviomutti-sysdigDavide Schiera
authored andcommitted
Fix profiling endpoint (#114)
1 parent 1e8ad22 commit bda4504

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sdcclient/_secure.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1342,7 +1342,7 @@ def list_image_profiles(self):
13421342
A JSON object containing the details of each profile.
13431343
13441344
'''
1345-
url = "{url}/api/profiling/v1/secure/profileGroups/0/profiles".format(
1345+
url = "{url}/api/v1/profiling/profileGroups/0/profiles".format(
13461346
url = self.url
13471347
)
13481348

@@ -1395,7 +1395,7 @@ def get_image_profile(self, profileId):
13951395
# Principal workflow. Profile ID found
13961396
elif len(matched_profiles) == 1:
13971397
# Matched id. Return information
1398-
url = "{url}/api/profiling/v1/secure/profiles/{profileId}".format(
1398+
url = "{url}/api/v1/profiling/profiles/{profileId}".format(
13991399
url = self.url,
14001400
profileId = matched_profiles[0]['profileId']
14011401
)

0 commit comments

Comments
 (0)