Fix unit test failure

Change-Id: Id1b21531087c5a37c4bbf8427a20a647cabdc344
This commit is contained in:
Lingxian Kong 2019-06-20 20:43:31 +12:00
parent 36d3987a77
commit 3ffe4d03a5

View File

@ -332,29 +332,28 @@ class Update(command.ShowOne):
help="Function entry in the format of <module_name>.<method_name>"
)
package_group = parser.add_argument_group('package_group')
swift_group = parser.add_argument_group('swift_group')
group = package_group.add_mutually_exclusive_group()
group.add_argument(
package_group = parser.add_mutually_exclusive_group()
package_group.add_argument(
"--file",
metavar="CODE_FILE_PATH",
help="Code file path."
)
group.add_argument(
package_group.add_argument(
"--package",
metavar="CODE_PACKAGE_PATH",
help="Code package zip file path."
)
swift_group.add_argument(
# For swift functions
parser.add_argument(
"--container",
help="Container name in Swift.",
)
swift_group.add_argument(
parser.add_argument(
"--object",
help="Object name in Swift.",
)
parser.add_argument(
"--cpu",
type=q_utils.check_positive,