Closed mthalman closed 3 months ago
I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label.
I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label.
The changes from https://github.com/dotnet/docker-tools/pull/1321 cause an attempt to get a token in
CopyImageService
when executing in dry run mode. This causes the following exception:That would be the expected behavior since it's not running in an authenticated context for a dry run. Instead, there should be no attempt made to get a token.
To fix this, I just moved the code which initializes
ArmClient
(and gets the token) to a section of the code that is only run when dry run is disabled.