def smartos_image():
 with settings(hide('running', 'stdout')):
  if is_file('/etc/product'):
   return run('cat /etc/product | head -n 2 | tail -n 1 | awk \'{ print $2 " " $3 }\'')
  else:
   return None

def smartos_image ( ) : with settings ( hide ( 'running' , 'stdout' ) ) : if is_file ( '/etc/product' ) : return run ( 'cat /etc/product | head -n 2 | tail -n 1 | awk \'{ print $2 " " $3 }\'' ) else : return None
get the smartos image .