Skip to content

Commit

Permalink
Add no-nocloud-network.patch
Browse files Browse the repository at this point in the history
  • Loading branch information
holmanb committed Aug 5, 2024
1 parent acb49bf commit 1bbe731
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
26 changes: 26 additions & 0 deletions debian/patches/no-nocloud-network.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
Description: Don't allow network-config
This may add a new wait time for a file that doesn't exist on existing series
so patch it out.

Author: Brett Holman <brett.holman@canonical.com>
Last-Update: 2024-08-02

--- a/cloudinit/sources/DataSourceNoCloud.py
+++ b/cloudinit/sources/DataSourceNoCloud.py
@@ -190,7 +190,7 @@

# This could throw errors, but the user told us to do it
# so if errors are raised, let them raise
- md_seed, ud, vd, network = util.read_seeded(seedfrom, timeout=None)
+ md_seed, ud, vd, _ = util.read_seeded(seedfrom, timeout=None)
LOG.debug("Using seeded cache data from %s", seedfrom)

# Values in the command line override those from the seed
@@ -199,7 +199,6 @@
)
mydata["user-data"] = ud
mydata["vendor-data"] = vd
- mydata["network-config"] = network
found.append(seedfrom)

# Now that we have exhausted any other places merge in the defaults
1 change: 1 addition & 0 deletions debian/patches/series
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
deprecation-version-boundary.patch
no-single-process.patch
no-nocloud-network.patch

0 comments on commit 1bbe731

Please sign in to comment.