def mk_token(**load):
 netapi = salt.netapi.NetapiClient(__opts__)
 if (not netapi._is_master_running()):
  raise salt.exceptions.SaltDaemonNotRunning('Salt Master must be running.')
 auth = salt.auth.Resolver(__opts__)
 return auth.mk_token(load)

def mk_token ( ** load ) : netapi = salt . netapi . NetapiClient ( __opts__ ) if ( not netapi . _is_master_running ( ) ) : raise salt . exceptions . SaltDaemonNotRunning ( 'Salt Master must be running.' ) auth = salt . auth . Resolver ( __opts__ ) return auth . mk_token ( load )
create an eauth token using provided credentials cli example: .