Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

Commit

Permalink
fix config api endpoints #16
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Monroy committed Jul 26, 2013
1 parent 4f94e80 commit 0db163e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client/deis/client.py
Expand Up @@ -387,7 +387,7 @@ def config_list(self, args):
formation = args.get('--formation')
if not formation:
formation = self._session.formation
response = self._dispatch('get', '/formations/{}/config'.format(formation))
response = self._dispatch('get', '/api/formations/{}/config'.format(formation))
if response.status_code == requests.codes.ok: # @UndefinedVariable
config = response.json()
values = json.loads(config['values'])
Expand All @@ -408,7 +408,7 @@ def config_set(self, args):
formation = self._session.formation
body = {'values': json.dumps(dictify(args['<var>=<value>']))}
response = self._dispatch('post',
'/formations/{}/config'.format(formation),
'/api/formations/{}/config'.format(formation),
json.dumps(body))
if response.status_code == requests.codes.created: # @UndefinedVariable
config = response.json()
Expand All @@ -433,7 +433,7 @@ def config_unset(self, args):
values[k] = None
body = {'values': json.dumps(values)}
response = self._dispatch('post',
'/formations/{}/config'.format(formation),
'/api/formations/{}/config'.format(formation),
data=json.dumps(body))
if response.status_code == requests.codes.created: # @UndefinedVariable
config = response.json()
Expand Down

0 comments on commit 0db163e

Please sign in to comment.