def pushed(name, tag='latest', insecure_registry=False):
 image_name = _get_image_name(name, tag)
 if __opts__['test']:
  comment = 'Image {0} will be pushed'.format(image_name)
  return _ret_status(name=name, comment=comment)
 push = __salt__['docker.push']
 returned = push(name, tag=tag, insecure_registry=insecure_registry)
 log.debug(('Returned: ' + str(returned)))
 if returned['status']:
  changes = {name: {'Rev': returned['id']}}
 else:
  changes = {}
 return _ret_status(returned, name, changes=changes)

def pushed ( name , tag = 'latest' , insecure_registry = False ) : image_name = _get_image_name ( name , tag ) if __opts__ [ 'test' ] : comment = 'Image {0} will be pushed' . format ( image_name ) return _ret_status ( name = name , comment = comment ) push = __salt__ [ 'docker.push' ] returned = push ( name , tag = tag , insecure_registry = insecure_registry ) log . debug ( ( 'Returned: ' + str ( returned ) ) ) if returned [ 'status' ] : changes = { name : { 'Rev' : returned [ 'id' ] } } else : changes = { } return _ret_status ( returned , name , changes = changes )
push an image from a docker registry .