def salt_cloud():
 try:
  import salt.cloud
  import salt.cloud.cli
  has_saltcloud = True
 except ImportError as e:
  log.error('Error importing salt cloud {0}'.format(e))
  has_saltcloud = False
 if ('' in sys.path):
  sys.path.remove('')
 if (not has_saltcloud):
  print('salt-cloud is not available in this system')
  sys.exit(salt.defaults.exitcodes.EX_UNAVAILABLE)
 client = salt.cloud.cli.SaltCloud()
 _install_signal_handlers(client)
 client.run()

def salt_cloud ( ) : try : import salt . cloud import salt . cloud . cli has_saltcloud = True except ImportError as e : log . error ( 'Error importing salt cloud {0}' . format ( e ) ) has_saltcloud = False if ( '' in sys . path ) : sys . path . remove ( '' ) if ( not has_saltcloud ) : print ( 'salt-cloud is not available in this system' ) sys . exit ( salt . defaults . exitcodes . EX_UNAVAILABLE ) client = salt . cloud . cli . SaltCloud ( ) _install_signal_handlers ( client ) client . run ( )
the main function for salt-cloud .