示例#1
0
 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,
         ]
示例#2
0
 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
示例#4
0
    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
示例#5
0
 def _get_session_path(self):
     return os.path.join(utils.get_home_dir(), self._session_file)
示例#6
0
 def _get_session_path(self):
     return os.path.join(utils.get_home_dir(), self._session_file)