summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-11-09 20:47:32 +0100
committerGitHub <noreply@github.com>2022-11-09 20:47:32 +0100
commit5203d31fa2d904a33f58204fb11f794d4bf659c3 (patch)
treecf426cd1c2c13c7087252df05412c7c558f9ecbf
parent404791353fcb790add07c1ef067c56a656d270aa (diff)
parent2251cf0ad084195331d3c0fa4da453f3e910f81d (diff)
downloadvyos-build-5203d31fa2d904a33f58204fb11f794d4bf659c3.tar.gz
vyos-build-5203d31fa2d904a33f58204fb11f794d4bf659c3.zip
Merge pull request #281 from jsimpso/current
T4796: Default args to list where list is expected
-rwxr-xr-xscripts/build-vyos-image6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/build-vyos-image b/scripts/build-vyos-image
index 57f3dfb1..535ea331 100755
--- a/scripts/build-vyos-image
+++ b/scripts/build-vyos-image
@@ -164,9 +164,9 @@ if __name__ == "__main__":
parser.add_argument('--dry-run', help='Check build configuration and exit', action='store_true')
# Custom APT entry and APT key options can be used multiple times
- parser.add_argument('--custom-apt-entry', help="Custom APT entry", action='append')
- parser.add_argument('--custom-apt-key', help="Custom APT key file", action='append')
- parser.add_argument('--custom-package', help="Custom package to install from repositories", action='append')
+ parser.add_argument('--custom-apt-entry', help="Custom APT entry", action='append', default=[])
+ parser.add_argument('--custom-apt-key', help="Custom APT key file", action='append', default=[])
+ parser.add_argument('--custom-package', help="Custom package to install from repositories", action='append', default=[])
# Build flavor is a positional argument
parser.add_argument('build_flavor', help='Build flavor', nargs='?', action='store')