diff options
author | Scott Moser <smoser@ubuntu.com> | 2012-11-13 14:15:07 -0500 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2012-11-13 14:15:07 -0500 |
commit | df38cb7a9f99fbb5fdaddeb08e43d74af30372c8 (patch) | |
tree | 6d0c80b5300912be93dddc3d9fe57bd94ca533bf /cloudinit/config/cc_power_state_change.py | |
parent | 8239df4493d81db1d245eaa51fdfe5458e2d1e4f (diff) | |
download | vyos-cloud-init-df38cb7a9f99fbb5fdaddeb08e43d74af30372c8.tar.gz vyos-cloud-init-df38cb7a9f99fbb5fdaddeb08e43d74af30372c8.zip |
use os.devnull [trivial]
Diffstat (limited to 'cloudinit/config/cc_power_state_change.py')
-rw-r--r-- | cloudinit/config/cc_power_state_change.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/config/cc_power_state_change.py b/cloudinit/config/cc_power_state_change.py index 02434322..a2e6920d 100644 --- a/cloudinit/config/cc_power_state_change.py +++ b/cloudinit/config/cc_power_state_change.py @@ -49,7 +49,7 @@ def handle(_name, cfg, _cloud, log, _args): log.warn("power_state: failed to get cmdline of current process") return - devnull_fp = open("/dev/null", "w") + devnull_fp = open(os.devnull, "w") log.debug("After pid %s ends, will execute: %s" % (mypid, ' '.join(args))) |