Skip to content

Commit f294fdc

Browse files
committed
Fix Azure#134
1 parent 6c3d2fe commit f294fdc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

azdev/operations/tests/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,8 @@ def _get_profile(profile):
152152
fore_red = colorama.Fore.RED if not IS_WINDOWS else ''
153153
fore_reset = colorama.Fore.RESET if not IS_WINDOWS else ''
154154
original_profile = raw_cmd('az cloud show --query profile -otsv', show_stderr=False).result
155+
if original_profile:
156+
original_profile = original_profile.split('\r\n')[0]
155157
if not profile or original_profile == profile:
156158
profile = original_profile
157159
display('The tests are set to run against current profile {}.'

0 commit comments

Comments
 (0)