Skip to content

Commit

Permalink
Update commands.py
Browse files Browse the repository at this point in the history
Resource processor - Re-instate az login and az acr login commands prior to porter explain command to fix microsoft#3950
  • Loading branch information
jonnyry authored May 24, 2024
1 parent ddbbffe commit 488b238
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions resource_processor/resources/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,10 @@ async def build_porter_command_for_outputs(msg_body):


async def get_porter_parameter_keys(config, msg_body):
command = [f"porter explain --reference {config['registry_server']}/{msg_body['name']}:v{msg_body['version']} --output json"]

command = [f"{azure_login_command(config)} && \
{azure_acr_login_command(config)} && \
porter explain --reference {config['registry_server']}/{msg_body['name']}:v{msg_body['version']} --output json"]

proc = await asyncio.create_subprocess_shell(
''.join(command),
stdout=asyncio.subprocess.PIPE,
Expand Down

0 comments on commit 488b238

Please sign in to comment.