Skip to content

Commit 8e16213

Browse files
authored
{Acrssc} Remove msrestazure dependency (#8841)
* Remove msrestazure from acrssc extension * upgrade version
1 parent a0901b4 commit 8e16213

3 files changed

Lines changed: 9 additions & 5 deletions

File tree

src/acrcssc/HISTORY.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
33
Release History
44
===============
5+
1.0.0b3
6+
+++++++
7+
* Remove msrestazure dependency
8+
59
1.0.0b2
610
++++++
711
* Bug fix: Updated to allow for az login when the account doesn't have any active subscriptions

src/acrcssc/azext_acrcssc/helper/_workflow_status.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@
1717
)
1818
from azure.cli.core.commands import LongRunningOperation
1919
from azure.cli.core.commands.progress import IndeterminateProgressBar
20+
from azure.core.exceptions import HttpResponseError
2021
from azure.cli.core.profiles import ResourceType, get_sdk
2122
from azure.cli.core.azclierror import AzCLIError, ResourceNotFoundError
2223
from azure.core.polling import PollingMethod
2324
from azure.mgmt.core.tools import parse_resource_id
2425
from knack.log import get_logger
2526
from enum import Enum
26-
from msrestazure.azure_exceptions import CloudError
2727

2828

2929
logger = get_logger(__name__)
@@ -239,7 +239,7 @@ def process_taskrun(taskrun):
239239
taskrun.task_log_result = tasklog
240240
except ResourceNotFoundError as e:
241241
logger.debug("Failed to get logs for taskrun: %s with exception: %s", taskrun.run_id, e)
242-
except CloudError as e:
242+
except HttpResponseError as e:
243243
logger.debug("An unexpected exception has occurred for taskrun: %s with exception: %s",
244244
taskrun.run_id, e)
245245

@@ -439,7 +439,7 @@ def generate_logs(cmd,
439439
registry_name=registry_name,
440440
run_id=run_id)
441441
log_file_sas = response.log_link
442-
except (AttributeError, CloudError) as e:
442+
except (AttributeError, HttpResponseError) as e:
443443
logger.debug("%s Exception: %s", error_msg, e)
444444
raise AzCLIError(error_msg)
445445
except ResourceNotFoundError as e:
@@ -476,7 +476,7 @@ def get_run_status_local(client, resource_group_name, registry_name, run_id):
476476
try:
477477
response = client.get(resource_group_name, registry_name, run_id)
478478
return response.status
479-
except (AttributeError, CloudError):
479+
except (AttributeError, HttpResponseError):
480480
return None
481481

482482
@staticmethod

src/acrcssc/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from distutils import log as logger
1414
logger.warn("Wheel is not available, disabling bdist_wheel hook")
1515

16-
VERSION = '1.0.0b2'
16+
VERSION = '1.0.0b3'
1717

1818
# The full list of classifiers is available at
1919
# https://pypi.python.org/pypi?%3Aaction=list_classifiers

0 commit comments

Comments
 (0)