Comment 4 for bug 1529836

Revision history for this message
Doug Hellmann (doug-hellmann) wrote :

Looking at where os.open is being used, I see mostly tests or Sphinx configuration files. We should probably go ahead and fix them, but it would be good to focus on production code first if possible.

  $ aeromancer grep os.popen | egrep -v '(bandit|conf.py|test)'
  openstack/fuel-ostf/fuel_health/common/ssh.py: f_path = os.popen('ls %s' % path, 'r').read().strip('\n')
  openstack/fuel-qa/utils/jenkins/fuel_logs.py: cls.pipe = os.popen('less --chop-long-lines', 'w')
  openstack/monasca-agent/monasca_agent/collector/checks_d/check_mk_local.py: for line in os.popen(self.init_config.get('mk_agent_path')).readlines():
  openstack/monasca-agent/monasca_agent/collector/checks_d/postfix.py: count = os.popen('sudo find %s -type f | wc -l' % queue_path)
  openstack/monitoring-for-openstack/legacy/oschecks-check_swift_dispersion:with os.popen("swift-dispersion-report -j %s" \
  openstack/openstackdocstheme/README.rst: gitsha = os.popen(git_cmd).read().strip('\n')