code: def init(opts):
      '''
      This function gets called when the proxy starts up.
      We check opts to see if a fallback user and password are supplied.
      If they are present, and the primary credentials don't work, then
      we try the backup before failing.
  
      Whichever set of credentials works is placed in the persistent
      DETAILS dictionary and will be used for further communication with the
      chassis.
      '''
      if 'host' not in opts['proxy']:
          log.critical('No "host" key found in pillar for this proxy')
          return False
  
      DETAILS['host'] = opts['proxy']['host']
  
      (username, password) = find_credentials(f init(opts):
      '''
      This function gets called when the proxy starts up.
      We check opts to see if a fallback user and password are supplied.
      If they are present, and the primary credentials don't work, then
      we try the backup before failing.
  
      Whichever set of credentials works is placed in the persistent
      DETAILS dictionary and will be used for further communication with the
      chassis.
      '''
      if 'host' not in opts['proxy']:
          log.critical('No "host" key found in pillar for this proxy')
          return False
  
      DETAILS['host'] = opts['proxy']['host']
  
      (username, password) = find_credentials()
docs: This function gets called when the proxy starts up.
      We check opts to see if a fallback user and password are supplied.
      If they are present, and the primary credentials don't work, then
      we try the backup before failing.
  
      Whichever set of credentials works is placed in the persistent
      DETAILS dictionary and will be used for further communication with the
      chassis.