diff options
Diffstat (limited to 'moonclient/moonclient/action_assignments.py')
-rw-r--r-- | moonclient/moonclient/action_assignments.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/moonclient/moonclient/action_assignments.py b/moonclient/moonclient/action_assignments.py index be2a66da..5625a2f2 100644 --- a/moonclient/moonclient/action_assignments.py +++ b/moonclient/moonclient/action_assignments.py @@ -34,7 +34,7 @@ class ActionAssignmentsList(Lister): return parser def __get_scope_from_id(self, intraextension_id, action_category_id, action_scope_id): - data = self.app.get_url("/v3/OS-MOON/intra_extensions/{}/action_scopes/{}".format( + data = self.app.get_url(self.app.url_prefix+"/intra_extensions/{}/action_scopes/{}".format( intraextension_id, action_category_id), authtoken=True) if action_scope_id in data: @@ -43,7 +43,7 @@ class ActionAssignmentsList(Lister): def take_action(self, parsed_args): if not parsed_args.intraextension: parsed_args.intraextension = self.app.intraextension - data = self.app.get_url("/v3/OS-MOON/intra_extensions/{}/action_assignments/{}/{}".format( + data = self.app.get_url(self.app.url_prefix+"/intra_extensions/{}/action_assignments/{}/{}".format( parsed_args.intraextension, parsed_args.action_id, parsed_args.action_category_id), authtoken=True) return ( @@ -84,7 +84,7 @@ class ActionAssignmentsAdd(Command): return parser def __get_scope_from_id(self, intraextension_id, action_category_id, action_scope_id): - data = self.app.get_url("/v3/OS-MOON/intra_extensions/{}/action_scopes/{}".format( + data = self.app.get_url(self.app.url_prefix+"/intra_extensions/{}/action_scopes/{}".format( intraextension_id, action_category_id), authtoken=True) if action_scope_id in data: @@ -93,7 +93,7 @@ class ActionAssignmentsAdd(Command): def take_action(self, parsed_args): if not parsed_args.intraextension: parsed_args.intraextension = self.app.intraextension - data = self.app.get_url("/v3/OS-MOON/intra_extensions/{}/action_assignments".format(parsed_args.intraextension), + data = self.app.get_url(self.app.url_prefix+"/intra_extensions/{}/action_assignments".format(parsed_args.intraextension), post_data={ "action_id": parsed_args.action_id, "action_category_id": parsed_args.action_category_id, @@ -139,7 +139,7 @@ class ActionAssignmentsDelete(Command): def take_action(self, parsed_args): if not parsed_args.intraextension: parsed_args.intraextension = self.app.intraextension - self.app.get_url("/v3/OS-MOON/intra_extensions/{}/action_assignments/{}/{}/{}".format( + self.app.get_url(self.app.url_prefix+"/intra_extensions/{}/action_assignments/{}/{}/{}".format( parsed_args.intraextension, parsed_args.action_id, parsed_args.action_category_id, |