code: def _get_options(self):
          '''
          Returns options used for the MySQL connection.
          '''
          defaults = {'host': 'localhost',
                      'user': 'salt',
                      'pass': 'salt',
                      'db': 'salt',
                      'port': 3306,
                      'ssl': {}}
          _options = {}
          _opts = __opts__.get('mysql', {})
          for attr in defaults:
              if attr not in _opts:
                  log.debug('Using default for MySQL %s', attr)
                  _options[attr] = defaults[attr]
                  continue
              _options[attr] = _opts[attr]
          return _optionf _get_options(self):
          '''
          Returns options used for the MySQL connection.
          '''
          defaults = {'host': 'localhost',
                      'user': 'salt',
                      'pass': 'salt',
                      'db': 'salt',
                      'port': 3306,
                      'ssl': {}}
          _options = {}
          _opts = __opts__.get('mysql', {})
          for attr in defaults:
              if attr not in _opts:
                  log.debug('Using default for MySQL %s', attr)
                  _options[attr] = defaults[attr]
                  continue
              _options[attr] = _opts[attr]
          return _options
docs: Returns options used for the MySQL connection.