mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
salt.modules.smartos_imgadm - renamed update_installed to update and added optional uuid parameter, now inline with underlaying imgadm update
This commit is contained in:
parent
ebb6909287
commit
1a1b2d7fc1
@ -63,19 +63,22 @@ def version():
|
||||
return ret[-1]
|
||||
|
||||
|
||||
def update_installed():
|
||||
def update(uuid=''):
|
||||
'''
|
||||
Gather info on unknown images (locally installed)
|
||||
Gather info on unknown image(s) (locally installed)
|
||||
|
||||
uuid : string
|
||||
Specifies uuid of image
|
||||
|
||||
CLI Example:
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
salt '*' imgadm.update_installed
|
||||
salt '*' imgadm.update [uuid]
|
||||
'''
|
||||
imgadm = _check_imgadm()
|
||||
if imgadm:
|
||||
cmd = '{0} update'.format(imgadm)
|
||||
cmd = '{0} update {1}'.format(imgadm, uuid).rstrip()
|
||||
__salt__['cmd.run'](cmd)
|
||||
return {}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user