From da96070ffdfffc9428cb54b1c21d44b7de47e6fc Mon Sep 17 00:00:00 2001 From: Zhomart Mukhamejanov Date: Wed, 6 Jun 2018 18:38:51 -0700 Subject: updater_sample: change gen_update_config args Change gen_update_config arg '--ab_force_switch_slot' from 'bool' to 'store_action'. Test: manually Change-Id: Ic65ac9ca3feb99b3a1751a44dec038d49c2b446a Signed-off-by: Zhomart Mukhamejanov --- updater_sample/tools/gen_update_config.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/updater_sample/tools/gen_update_config.py b/updater_sample/tools/gen_update_config.py index 7fb64f7fc..b43e49df8 100755 --- a/updater_sample/tools/gen_update_config.py +++ b/updater_sample/tools/gen_update_config.py @@ -131,10 +131,10 @@ def main(): # pylint: disable=missing-docstring choices=ab_install_type_choices, help='A/B update installation type') parser.add_argument('--ab_force_switch_slot', - type=bool, default=False, - help='if set true device will boot to a new slot, otherwise user manually ' - 'switches slot on the screen') + action='store_true', + help='if set device will boot to a new slot, otherwise user ' + 'manually switches slot on the screen') parser.add_argument('package', type=str, help='OTA package zip file') -- cgit v1.2.3