Skip to content

Commit

Permalink
Moved constant to constants.py.
Browse files Browse the repository at this point in the history
  • Loading branch information
Haroon Feisal committed May 5, 2022
1 parent 1165dc9 commit a4590f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/containerapp/azext_containerapp/_constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@
LONG_POLLING_INTERVAL_SECS = 10

LOG_ANALYTICS_RP = "Microsoft.OperationalInsights"

MAX_ENV_PER_LOCATION = 2
2 changes: 1 addition & 1 deletion src/containerapp/azext_containerapp/_up_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -802,7 +802,7 @@ def find_existing_acr(cmd, app: "ContainerApp"):


def validate_environment_location(cmd, location):
MAX_ENV_PER_LOCATION = 2
from ._constants import MAX_ENV_PER_LOCATION
env_list = list_managed_environments(cmd)

locations = [l["location"] for l in env_list]
Expand Down

0 comments on commit a4590f4

Please sign in to comment.