Skip to content

Commit

Permalink
refresh patches
Browse files Browse the repository at this point in the history
  • Loading branch information
TheRealFalcon committed Aug 6, 2024
1 parent cee5047 commit 8944ddd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
21 changes: 10 additions & 11 deletions debian/patches/cli-retain-file-argument-as-main-cmd-arg.patch
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Bug: https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/2064300
Last-Update: 2024-04-30 <YYYY-MM-DD, last update of the meta-information, optional>
--- a/cloudinit/cmd/main.py
+++ b/cloudinit/cmd/main.py
@@ -121,6 +121,11 @@ def extract_fns(args):
@@ -147,6 +147,11 @@ def extract_fns(args):
# since it would of broke if it couldn't have
# read that file already...
fn_cfgs = []
Expand All @@ -21,7 +21,7 @@ Last-Update: 2024-04-30 <YYYY-MM-DD, last update of the meta-information, option
if args.files:
for fh in args.files:
# The realpath is more useful in logging
@@ -922,6 +927,17 @@ def main(sysv_args=None):
@@ -953,6 +958,17 @@ def main(sysv_args=None):
default=False,
)
parser.add_argument(
Expand All @@ -41,26 +41,25 @@ Last-Update: 2024-04-30 <YYYY-MM-DD, last update of the meta-information, option
help=(
--- a/tests/unittests/cmd/test_main.py
+++ b/tests/unittests/cmd/test_main.py
@@ -13,7 +13,9 @@ from cloudinit.cmd import main
from cloudinit.util import ensure_dir, load_text_file, write_file
@@ -14,7 +14,8 @@ from cloudinit.util import ensure_dir, l
from tests.unittests.helpers import FilesystemMockingTestCase, wrap_and_call

-MyArgs = namedtuple("MyArgs", "debug files force local reporter subcommand")
+MyArgs = namedtuple(
+ "MyArgs", "debug main_files files force local reporter subcommand"
+)
MyArgs = namedtuple(
- "MyArgs", "debug files force local reporter subcommand skip_log_setup"
+ "MyArgs",
+ "debug main_files files force local reporter subcommand skip_log_setup",
)


class TestMain(FilesystemMockingTestCase):
@@ -71,6 +73,7 @@ class TestMain(FilesystemMockingTestCase
@@ -73,6 +74,7 @@ class TestMain(FilesystemMockingTestCase
"""Modules like write_files are run in 'net' mode."""
cmdargs = MyArgs(
debug=False,
+ main_files=None,
files=None,
force=False,
local=False,
@@ -117,6 +120,7 @@ class TestMain(FilesystemMockingTestCase
@@ -120,6 +122,7 @@ class TestMain(FilesystemMockingTestCase
write_file(self.cloud_cfg_file, cloud_cfg)
cmdargs = MyArgs(
debug=False,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ Last-Update: 2024-02-14

if TYPE_CHECKING:
# Avoid circular import
@@ -3064,18 +3064,6 @@ def wait_for_files(flist, maxwait, naple
@@ -3087,18 +3087,6 @@ def wait_for_files(flist, maxwait, naple
return need


Expand Down

0 comments on commit 8944ddd

Please sign in to comment.