def update_jail(name):
 if is_jail(name):
  cmd = 'poudriere jail -u -j {0}'.format(name)
  ret = __salt__['cmd.run'](cmd)
  return ret
 else:
  return 'Could not find jail {0}'.format(name)

def update_jail ( name ) : if is_jail ( name ) : cmd = 'poudriere jail -u -j {0}' . format ( name ) ret = __salt__ [ 'cmd.run' ] ( cmd ) return ret else : return 'Could not find jail {0}' . format ( name )
run freebsd-update on name poudriere jail cli example: .