Skip to content

Commit

Permalink
Remove location null check while validating environments
Browse files Browse the repository at this point in the history
  • Loading branch information
Zijian-Ju committed Nov 21, 2022
1 parent f5437d5 commit a52bb50
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/containerapp/azext_containerapp/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1516,9 +1516,6 @@ def validate_environment_location(cmd, location):
except Exception as e: # pylint: disable=broad-except
raise ValidationError("You cannot create a Containerapp environment in location {}. List of eligible locations: {}.".format(location, allowed_locs)) from e

if not location:
logger.warning("Creating environment on location %s.", res_locations[0])
return res_locations[0]
return location


Expand Down

0 comments on commit a52bb50

Please sign in to comment.