Skip to content

Commit

Permalink
Fix az group deployment create has an error when using large paramete…
Browse files Browse the repository at this point in the history
…rs.json file (#12047)
  • Loading branch information
zhoxing-ms authored Feb 14, 2020
1 parent 86219a4 commit 6ff8dfc
Show file tree
Hide file tree
Showing 5 changed files with 2,164 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/azure-cli/azure/cli/command_modules/resource/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,11 @@ def _try_parse_json_object(value):
return None

def _try_load_file_object(value):
if os.path.isfile(value):
try:
is_file = os.path.isfile(value)
except ValueError:
is_file = False
if is_file is True:
parsed = get_file_json(value, throw_on_empty=False)
return parsed.get('parameters', parsed)
return None
Expand Down

Large diffs are not rendered by default.

Loading

0 comments on commit 6ff8dfc

Please sign in to comment.