Merge "stx tool: Update the check for the build image task"

This commit is contained in:
Zuul 2021-11-16 15:23:24 +00:00 committed by Gerrit Code Review
commit 43b15d6d9f
2 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ class HandleBuildTask:
def buildImageCMD(self, args, prefixcmd):
if args.type:
if (args.type != 'rt' and args.type != 'std'):
if args.type not in ['rt', 'std']:
self.logger.error('Option -t for generaing image only should \
be [ rt|std ]')
self.logger.error('Please use "stx build -h" to show the help\

View File

@ -105,7 +105,7 @@ image.\t\teg: [ prepare|distro|image|${pkgname}]')
', action='store_true', required=False)
build_subparser.add_argument('-t', '--type',
help='[ rt|std ]: Select the kernel type.\
', nargs=1, required=False)
', required=False)
build_subparser.set_defaults(handle=self.handlebuild.handleBuild)
repo_subparser = subparsers.add_parser('repomgr',