summaryrefslogtreecommitdiff
path: root/cloudinit/config/cc_power_state_change.py
diff options
context:
space:
mode:
Diffstat (limited to 'cloudinit/config/cc_power_state_change.py')
-rw-r--r--cloudinit/config/cc_power_state_change.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/cloudinit/config/cc_power_state_change.py b/cloudinit/config/cc_power_state_change.py
index 6bd14b7e..561c5abd 100644
--- a/cloudinit/config/cc_power_state_change.py
+++ b/cloudinit/config/cc_power_state_change.py
@@ -30,12 +30,10 @@ frequency = PER_INSTANCE
EXIT_FAIL = 254
-#
-# Returns the cmdline for the given process id. In Linux we can use procfs for
-# this but on BSD there is /usr/bin/procstat.
-#
def givecmdline(pid):
+ # Returns the cmdline for the given process id. In Linux we can use procfs
+ # for this but on BSD there is /usr/bin/procstat.
try:
# Example output from procstat -c 1
# PID COMM ARGS
@@ -50,6 +48,7 @@ def givecmdline(pid):
except IOError:
return None
+
def handle(_name, cfg, _cloud, log, _args):
try: