summaryrefslogtreecommitdiffstats
path: root/moonclient/moonclient/subjects.py
diff options
context:
space:
mode:
Diffstat (limited to 'moonclient/moonclient/subjects.py')
-rw-r--r--moonclient/moonclient/subjects.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/moonclient/moonclient/subjects.py b/moonclient/moonclient/subjects.py
index 29ce745d..8203cd92 100644
--- a/moonclient/moonclient/subjects.py
+++ b/moonclient/moonclient/subjects.py
@@ -27,7 +27,7 @@ class SubjectsList(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/{}/subjects".format(parsed_args.intraextension),
+ data = self.app.get_url(self.app.url_prefix+"/intra_extensions/{}/subjects".format(parsed_args.intraextension),
authtoken=True)
return (
("id", "name", "Keystone ID"),
@@ -74,7 +74,7 @@ class SubjectsAdd(Command):
parsed_args.intraextension = self.app.intraextension
if not parsed_args.password:
parsed_args.password = getpass.getpass("Password for user {}:".format(parsed_args.subject_name))
- data = self.app.get_url("/v3/OS-MOON/intra_extensions/{}/subjects".format(parsed_args.intraextension),
+ data = self.app.get_url(self.app.url_prefix+"/intra_extensions/{}/subjects".format(parsed_args.intraextension),
post_data={
"subject_name": parsed_args.subject_name,
"subject_description": parsed_args.description,
@@ -110,7 +110,7 @@ class SubjectsDelete(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/{}/subjects/{}".format(
+ self.app.get_url(self.app.url_prefix+"/intra_extensions/{}/subjects/{}".format(
parsed_args.intraextension,
parsed_args.subject_id
),