summaryrefslogtreecommitdiff
path: root/cloudinit/CloudConfig/cc_runcmd.py
diff options
context:
space:
mode:
Diffstat (limited to 'cloudinit/CloudConfig/cc_runcmd.py')
-rw-r--r--cloudinit/CloudConfig/cc_runcmd.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/cloudinit/CloudConfig/cc_runcmd.py b/cloudinit/CloudConfig/cc_runcmd.py
index 3c9baa6f..cb297568 100644
--- a/cloudinit/CloudConfig/cc_runcmd.py
+++ b/cloudinit/CloudConfig/cc_runcmd.py
@@ -18,8 +18,9 @@
import cloudinit.util as util
+
def handle(_name, cfg, cloud, log, _args):
- if not cfg.has_key("runcmd"):
+ if "runcmd" not in cfg:
return
outfile = "%s/runcmd" % cloud.get_ipath('scripts')
try: