Skip to content

Commit

Permalink
Fix Azure#134
Browse files Browse the repository at this point in the history
  • Loading branch information
bim-msft committed Nov 11, 2019
1 parent 6c3d2fe commit f294fdc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions azdev/operations/tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,8 @@ def _get_profile(profile):
fore_red = colorama.Fore.RED if not IS_WINDOWS else ''
fore_reset = colorama.Fore.RESET if not IS_WINDOWS else ''
original_profile = raw_cmd('az cloud show --query profile -otsv', show_stderr=False).result
if original_profile:
original_profile = original_profile.split('\r\n')[0]
if not profile or original_profile == profile:
profile = original_profile
display('The tests are set to run against current profile {}.'
Expand Down

0 comments on commit f294fdc

Please sign in to comment.