summaryrefslogtreecommitdiff
path: root/cloudinit/CloudConfig/cc_disable_ec2_metadata.py
diff options
context:
space:
mode:
Diffstat (limited to 'cloudinit/CloudConfig/cc_disable_ec2_metadata.py')
-rw-r--r--cloudinit/CloudConfig/cc_disable_ec2_metadata.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/cloudinit/CloudConfig/cc_disable_ec2_metadata.py b/cloudinit/CloudConfig/cc_disable_ec2_metadata.py
index 383e3b0c..7deec324 100644
--- a/cloudinit/CloudConfig/cc_disable_ec2_metadata.py
+++ b/cloudinit/CloudConfig/cc_disable_ec2_metadata.py
@@ -21,6 +21,7 @@ from cloudinit.CloudConfig import per_always
frequency = per_always
+
def handle(_name, cfg, _cloud, _log, _args):
if util.get_cfg_option_bool(cfg, "disable_ec2_metadata", False):
fwall = "route add -host 169.254.169.254 reject"