def _get_config_files(self): if sys.platform.find('sunos') > -1: return [ "/opt/redhat/rhn/solaris/etc/sysconfig/rhn/%s.conf" % self.section, os.path.join(utils.get_home_dir(), self._local_config_file_name), self._local_config_file_name, ] else: return [ "/etc/sysconfig/rhn/%s.conf" % self.section, os.path.join(utils.get_home_dir(), self._local_config_file_name), self._local_config_file_name, ]
def _get_config_files(self): if sys.platform.find('sunos') > -1: default_config_file = "/opt/redhat/rhn/solaris/etc/sysconfig/rhn/%s.conf" % self.section else: default_config_file = "/etc/sysconfig/rhn/%s.conf" % self.section config_file_list = [ default_config_file, os.path.join(utils.get_home_dir(), self._local_config_file_name), self._local_config_file_name, ] if self.config_file_override: config_file_list.append(self.config_file_override) return config_file_list
def _get_session_path(self): return os.path.join(utils.get_home_dir(), self._session_file)