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:
Jorge Schrauwen 2015-08-09 09:40:53 +00:00
parent ebb6909287
commit 1a1b2d7fc1

View File

@ -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 {}