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')
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)' fuel-ostf/ fuel_health/ common/ ssh.py: f_path = os.popen('ls %s' % path, 'r').read( ).strip( '\n') fuel-qa/ utils/jenkins/ fuel_logs. py: cls.pipe = os.popen('less --chop-long-lines', 'w') monasca- agent/monasca_ agent/collector /checks_ d/check_ mk_local. py: for line in os.popen( self.init_ config. get('mk_ agent_path' )).readlines( ): monasca- agent/monasca_ agent/collector /checks_ d/postfix. py: count = os.popen('sudo find %s -type f | wc -l' % queue_path) monitoring- for-openstack/ legacy/ oschecks- check_swift_ dispersion: with os.popen( "swift- dispersion- report -j %s" \ openstackdocsth eme/README. rst: gitsha = os.popen( git_cmd) .read() .strip( '\n')
openstack/
openstack/
openstack/
openstack/
openstack/
openstack/