mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
opnstack config shell migration
This commit is contained in:
parent
99b4911f13
commit
4750ee9b32
@ -76,7 +76,8 @@ def set_(filename, section, parameter, value):
|
||||
result = __salt__['cmd.run_all'](
|
||||
'openstack-config --set {0} {1} {2} {3}'.format(
|
||||
filename, section, parameter, value
|
||||
)
|
||||
),
|
||||
python_shell=False,
|
||||
)
|
||||
|
||||
if result['retcode'] == 0:
|
||||
@ -114,7 +115,8 @@ def get(filename, section, parameter):
|
||||
result = __salt__['cmd.run_all'](
|
||||
'openstack-config --get {0} {1} {2}'.format(
|
||||
filename, section, parameter
|
||||
)
|
||||
),
|
||||
python_shell=False,
|
||||
)
|
||||
|
||||
if result['retcode'] == 0:
|
||||
@ -151,7 +153,8 @@ def delete(filename, section, parameter):
|
||||
result = __salt__['cmd.run_all'](
|
||||
'openstack-config --del {0} {1} {2}'.format(
|
||||
filename, section, parameter
|
||||
)
|
||||
),
|
||||
python_shell=False,
|
||||
)
|
||||
|
||||
if result['retcode'] == 0:
|
||||
|
Loading…
Reference in New Issue
Block a user