summaryrefslogtreecommitdiff
path: root/cloudinit/sources/helpers/vultr.py
diff options
context:
space:
mode:
Diffstat (limited to 'cloudinit/sources/helpers/vultr.py')
-rw-r--r--cloudinit/sources/helpers/vultr.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cloudinit/sources/helpers/vultr.py b/cloudinit/sources/helpers/vultr.py
index 350ba4ab..190a5640 100644
--- a/cloudinit/sources/helpers/vultr.py
+++ b/cloudinit/sources/helpers/vultr.py
@@ -35,11 +35,11 @@ def get_metadata(url, timeout, retries, sec_between, agent):
# Fetch the metadata
v1 = read_metadata(url, timeout, retries, sec_between, agent)
+
+ return json.loads(v1)
except (NoDHCPLeaseError, subp.ProcessExecutionError) as exc:
LOG.error("DHCP Exception: %s", exc)
exception = exc
-
- return json.loads(v1)
raise exception