summaryrefslogtreecommitdiff
path: root/cloudinit/config/cc_power_state_change.py
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2012-11-13 14:15:07 -0500
committerScott Moser <smoser@ubuntu.com>2012-11-13 14:15:07 -0500
commitdf38cb7a9f99fbb5fdaddeb08e43d74af30372c8 (patch)
tree6d0c80b5300912be93dddc3d9fe57bd94ca533bf /cloudinit/config/cc_power_state_change.py
parent8239df4493d81db1d245eaa51fdfe5458e2d1e4f (diff)
downloadvyos-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.py2
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)))