Skip to content

Commit

Permalink
Set action variable before it is used (#13149)
Browse files Browse the repository at this point in the history
* Set `action` before it is used

* Bump version

* Fix version

Co-authored-by: Dan Friedman <dan@thefriedmans.org>
Co-authored-by: Anurag Chauhan <44864882+anuragc617@users.noreply.github.com>
  • Loading branch information
3 people committed Jul 1, 2020
1 parent 1a3f41c commit fd459fc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ export class TaskParameters {
}
}

this.action = tl.getInput("action");

//Location
this.location = tl.getInput("location");
if(!this.location && this.deploymentScope === "Resource Group" && this.action != "DeleteRG"){
Expand Down Expand Up @@ -116,7 +118,6 @@ export class TaskParameters {
this.graphCredentials = await this.getGraphCredentials(this.connectedService);
this.deploymentOutputs = tl.getInput("deploymentOutputs");
this.addSpnToEnvironment = tl.getBoolInput("addSpnToEnvironment", false);
this.action = tl.getInput("action");

return this;
} catch (error) {
Expand Down
2 changes: 1 addition & 1 deletion Tasks/AzureResourceManagerTemplateDeploymentV3/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"version": {
"Major": 3,
"Minor": 2,
"Patch": 6
"Patch": 7
},
"demands": [],
"minimumAgentVersion": "2.119.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"version": {
"Major": 3,
"Minor": 2,
"Patch": 6
"Patch": 7
},
"demands": [],
"minimumAgentVersion": "2.119.1",
Expand Down

0 comments on commit fd459fc

Please sign in to comment.