Skip to content

Commit

Permalink
--input-path should accept other encoding types besides UTF-8 encoding (
Browse files Browse the repository at this point in the history
  • Loading branch information
jsntcy authored Aug 3, 2022
1 parent cf1ee43 commit eb35ad2
Show file tree
Hide file tree
Showing 6 changed files with 110 additions and 67 deletions.
4 changes: 4 additions & 0 deletions src/portal/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
Release History
===============

0.1.3
++++++
* [Fix] `az portal dashboard`: `--input-path` should accept other encoding types besides UTF-8 encoding.

0.1.1
++++++
* Initial release.
2 changes: 1 addition & 1 deletion src/portal/azext_portal/generated/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def portal_dashboard_import(cmd, client,

def parse_properties_json(input_path):
try:
with open(input_path) as json_file:
with open(input_path, 'rb') as json_file:
try:
properties = json.load(json_file)
except json.decoder.JSONDecodeError as ex:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
{
"lenses": {
"0": {
"order": 0,
Expand Down
Loading

0 comments on commit eb35ad2

Please sign in to comment.