summaryrefslogtreecommitdiff
path: root/cloudinit
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2012-11-13 13:09:45 -0500
committerScott Moser <smoser@ubuntu.com>2012-11-13 13:09:45 -0500
commitd8b4f9245331cb8b6f04d63a3a62e45563486512 (patch)
tree1de8b917cc60069ffb017bc62c2a15da6042b1cf /cloudinit
parent587d15b1694d5c8e665c224341f4ec04bbf7444f (diff)
downloadvyos-cloud-init-d8b4f9245331cb8b6f04d63a3a62e45563486512.tar.gz
vyos-cloud-init-d8b4f9245331cb8b6f04d63a3a62e45563486512.zip
fix read of /proc/cmdline
Diffstat (limited to 'cloudinit')
-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 07de548c..7f6e780d 100644
--- a/cloudinit/config/cc_power_state_change.py
+++ b/cloudinit/config/cc_power_state_change.py
@@ -41,7 +41,7 @@ def handle(_name, cfg, _cloud, log, _args):
return
mypid = os.getpid()
- cmdline = util.load_file("/proc/%s/cmdline")
+ cmdline = util.load_file("/proc/%s/cmdline" % mypid)
if not cmdline:
log.warn("power_state: failed to get cmdline of current process")