Skip to content

Commit

Permalink
Fix read_seeded ignore_files error
Browse files Browse the repository at this point in the history
  • Loading branch information
cofob committed Sep 6, 2024
1 parent c622375 commit 61f1301
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cloudinit/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -1086,23 +1086,23 @@ def read_seeded(base="", ext="", timeout=5, retries=10, ignore_files=None):
network = load_yaml(network_resp.contents)

md = None
if "meta-data" in ignore_files:
if "meta-data" not in ignore_files:
md_resp = url_helper.read_file_or_url(
md_url, timeout=timeout, retries=retries
)
if md_resp.ok():
md = load_yaml(md_resp.contents, default={})

ud = None
if "user-data" in ignore_files:
if "user-data" not in ignore_files:
ud_resp = url_helper.read_file_or_url(
ud_url, timeout=timeout, retries=retries
)
if ud_resp.ok():
ud = ud_resp.contents

vd = None
if "vendor-data" in ignore_files:
if "vendor-data" not in ignore_files:
try:
vd_resp = url_helper.read_file_or_url(
vd_url, timeout=timeout, retries=retries
Expand Down

0 comments on commit 61f1301

Please sign in to comment.