Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

———————syslog_config.py——————

import platform

class syslog_config(object):

    def _init_(self):        

         // This dictionary will hold the values for the sysconf files for various linux distributions

        self.syslog_conf_path = {'centos7': '/etc/rsyslog’.conf, 'RHEL7': '/etc/rsyslog'}

class syslog_config(object):

    def _init_(self):


        // Get OS version of the system 

        os = platform.dist()[0] + platform.dist()[1][0]

        path = self.syslog_conf_path[os]


    def path_to_syslog(self):

...