Skip to content

Commit

Permalink
Icon file is now considered optional. (microsoft#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
mamurshe authored Mar 29, 2019
1 parent b973ede commit 54a4b7f
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions tools/paconn-cli/paconn/operations/create_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,6 @@ def create_update(powerapps_rp, settings, client_secret, is_update):
_file_check(
file=settings.api_definition,
file_type='API Definition')
_file_check(
file=settings.icon,
file_type='Icon')

# Open the property file
with open(settings.api_properties, 'r') as file:
Expand Down Expand Up @@ -131,10 +128,11 @@ def create_update(powerapps_rp, settings, client_secret, is_update):
sas_url = response[_SHARED_ACCESS_SIGNATURE]

# Upload the icon
icon_uri = upload_icon(
sas_url=sas_url,
file_path=settings.icon)
properties[_ICON_URI] = icon_uri
if settings.icon:
icon_uri = upload_icon(
sas_url=sas_url,
file_path=settings.icon)
properties[_ICON_URI] = icon_uri

# Update or create the connector
if is_update is True:
Expand Down

0 comments on commit 54a4b7f

Please sign in to comment.