Nope - do it as root

This commit is contained in:
james.page@ubuntu.com 2015-09-09 12:59:09 +01:00
parent 54a1896d6c
commit a3aee3cda3
1 changed files with 2 additions and 2 deletions

View File

@ -622,10 +622,10 @@ def configure_lxd_host(settings, user):
if ubuntu_release > "vivid":
log('>= Wily deployment - configuring LXD trust password and address',
level=INFO)
cmd = ['sudo', '-u', user, 'lxc', 'config', 'set',
cmd = ['lxc', 'config', 'set',
'core.trust_password', settings['lxd_password']]
check_call(cmd)
cmd = ['sudo', '-u', user, 'lxc', 'config', 'set',
cmd = ['lxc', 'config', 'set',
'core.https_address', settings['lxd_address']]
check_call(cmd)
elif ubuntu_release == "vivid":