@real_memoize
def is_smartos_zone():
 if (not is_smartos()):
  return False
 else:
  cmd = ['zonename']
  try:
   zonename = subprocess.Popen(cmd, shell=False, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
  except OSError:
   return False
  if zonename.returncode:
   return False
  if (zonename.stdout.read().strip() == 'global'):
   return False
  return True

@ real_memoize def is_smartos_zone ( ) : if ( not is_smartos ( ) ) : return False else : cmd = [ 'zonename' ] try : zonename = subprocess . Popen ( cmd , shell = False , stdout = subprocess . PIPE , stderr = subprocess . PIPE ) except OSError : return False if zonename . returncode : return False if ( zonename . stdout . read ( ) . strip ( ) == 'global' ) : return False return True
function to return if host is smartos and not the gz .