Commit d971f4fc authored by Takashi Toyoshima's avatar Takashi Toyoshima Committed by Commit Bot

syntax_check_policy_template_json.py is broken

After the last cleanup,
https://chromium-review.googlesource.com/c/chromium/src/+/2007285,
syntax check for policy template does not work as the newly
related ArgumentParser does not support taking type='string'.

Bug: 1032064
Change-Id: I2d0f87781f402bbf3867590ceeed8147743c4d71
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2022025
Auto-Submit: Takashi Toyoshima <toyoshim@chromium.org>
Commit-Queue: Alexander Hendrich <hendrich@chromium.org>
Reviewed-by: default avatarAlexander Hendrich <hendrich@chromium.org>
Cr-Commit-Position: refs/heads/master@{#735386}
parent 7c713545
...@@ -1474,8 +1474,7 @@ class PolicyTemplateChecker(object): ...@@ -1474,8 +1474,7 @@ class PolicyTemplateChecker(object):
description='Syntax check a policy_templates.json file.') description='Syntax check a policy_templates.json file.')
parser.add_argument( parser.add_argument(
'--device_policy_proto_path', '--device_policy_proto_path',
help='[REQUIRED] File path of the device policy proto file.', help='[REQUIRED] File path of the device policy proto file.')
type='string')
parser.add_argument( parser.add_argument(
'--fix', action='store_true', help='Automatically fix formatting.') '--fix', action='store_true', help='Automatically fix formatting.')
parser.add_argument( parser.add_argument(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment