Skip to content

Commit 5e19527

Browse files
authored
[AKS] Do not parse output when... (#24506)
...updating node pool image version
1 parent a860933 commit 5e19527

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Aks/Aks/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
- Additional information about change #1
1919
-->
2020
## Upcoming Release
21+
* Fixed the 'Non-static method requires a target' error when updating the image version of the node pool. [#24337]
2122

2223
## Version 6.0.1
2324
* Fixed the resolve path issue in `Install-AzAksCliTool`.

src/Aks/Aks/Commands/UpdateAzureRmAksNodePool.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,7 @@ public override void ExecuteCmdlet()
163163
return;
164164
}
165165

166-
var upgradedPool = Client.AgentPools.UpgradeNodeImageVersion(ResourceGroupName, ClusterName, Name);
167-
WriteObject(AdapterHelper<AgentPool, PSNodePool>.Adapt(upgradedPool));
166+
Client.AgentPools.UpgradeNodeImageVersion(ResourceGroupName, ClusterName, Name);
168167
return;
169168
}
170169
if (this.IsParameterBound(c => c.NodeLabel))

0 commit comments

Comments
 (0)