diff options
| author | Zuul <zuul@review.openstack.org> | 2018-02-07 21:45:49 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2018-02-07 21:45:49 +0000 |
| commit | de32d66ce3d633c44b85a42563906ac018fd410a (patch) | |
| tree | 287def793563b01bb97ba5ff8554ef662916608d | |
| parent | e8bdfeed32e5c3ac5597a6ec84b3ebf894234a6c (diff) | |
| parent | 944a77c9c60ab2ef938fae609e68c9c67bac8872 (diff) | |
| download | ironic-python-agent-3.2.0.tar.gz | |
Merge "When ouputting to /dev/null should open in write mode"3.2.0
| -rw-r--r-- | ironic_python_agent/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ironic_python_agent/utils.py b/ironic_python_agent/utils.py index f0951270..2bc2bfa1 100644 --- a/ironic_python_agent/utils.py +++ b/ironic_python_agent/utils.py @@ -313,7 +313,7 @@ def is_journalctl_present(): :returns: True if journalctl is present, False if not. """ try: - devnull = open(os.devnull) + devnull = open(os.devnull, 'w') subprocess.check_call(['journalctl', '--version'], stdout=devnull, stderr=devnull) except OSError as e: |
