~thedac/openstack-mojo-specs/juju-translate

« back to all changes in this revision

Viewing changes to helper/utils/mojo_utils.py

  • Committer: David Ames
  • Date: 2017-03-06 15:46:30 UTC
  • Revision ID: david.ames@canonical.com-20170306154630-17jhobc4y3cvb8tr
Fix config calls

Show diffs side-by-side

added added

removed removed

Lines of Context:
223
223
    if wait is None:
224
224
        wait = True
225
225
    logging.info('Setting %s to %s' % (service, option))
226
 
    subprocess.check_call([kiki.cmd(), kiki.config(change=True),
 
226
    subprocess.check_call([kiki.cmd(), kiki.set_config(),
227
227
                           service, option])
228
228
    if wait:
229
229
        juju_wait_finished()
230
230
 
231
231
 
232
232
def juju_get_config_keys(service):
233
 
    cmd = [kiki.cmd(), kiki.config(), service]
 
233
    cmd = [kiki.cmd(), kiki.get_config(), service]
234
234
    juju_get_output = subprocess.Popen(cmd, stdout=subprocess.PIPE).stdout
235
235
    service_config = yaml.load(juju_get_output)
236
236
    return service_config['settings'].keys()
237
237
 
238
238
 
239
239
def juju_get(service, option):
240
 
    cmd = [kiki.cmd(), kiki.config(), service]
 
240
    cmd = [kiki.cmd(), kiki.get_config(), service]
241
241
    juju_get_output = subprocess.Popen(cmd, stdout=subprocess.PIPE).stdout
242
242
    service_config = yaml.load(juju_get_output)
243
243