@@ -387,7 +387,7 @@ def config_list(self, args):
387387 formation = args .get ('--formation' )
388388 if not formation :
389389 formation = self ._session .formation
390- response = self ._dispatch ('get' , '/formations/{}/config' .format (formation ))
390+ response = self ._dispatch ('get' , '/api/ formations/{}/config' .format (formation ))
391391 if response .status_code == requests .codes .ok : # @UndefinedVariable
392392 config = response .json ()
393393 values = json .loads (config ['values' ])
@@ -408,7 +408,7 @@ def config_set(self, args):
408408 formation = self ._session .formation
409409 body = {'values' : json .dumps (dictify (args ['<var>=<value>' ]))}
410410 response = self ._dispatch ('post' ,
411- '/formations/{}/config' .format (formation ),
411+ '/api/ formations/{}/config' .format (formation ),
412412 json .dumps (body ))
413413 if response .status_code == requests .codes .created : # @UndefinedVariable
414414 config = response .json ()
@@ -433,7 +433,7 @@ def config_unset(self, args):
433433 values [k ] = None
434434 body = {'values' : json .dumps (values )}
435435 response = self ._dispatch ('post' ,
436- '/formations/{}/config' .format (formation ),
436+ '/api/ formations/{}/config' .format (formation ),
437437 data = json .dumps (body ))
438438 if response .status_code == requests .codes .created : # @UndefinedVariable
439439 config = response .json ()
0 commit comments