Skip to content

Commit de478df

Browse files
azure-sdkbenbp
andauthored
Change prod maintenance day. Fix stress watcher deploy (Azure#21618)
Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
1 parent 4fff0f0 commit de478df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eng/common/scripts/stress-testing/stress-test-deployment-lib.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ function Login([string]$subscription, [string]$clusterGroup, [switch]$skipPushIm
5959
$kubeContext = (RunOrExitOnFailure kubectl config view -o json) | ConvertFrom-Json -AsHashtable
6060
$defaultNamespace = $null
6161
$targetContext = $kubeContext.contexts.Where({ $_.name -eq $clusterName }) | Select -First 1
62-
if ($targetContext -ne $null -and $targetContext.Contains('context') -and $targetContext.Contains('namespace')) {
62+
if ($targetContext -ne $null -and $targetContext.Contains('context') -and $targetContext.context.Contains('namespace')) {
6363
$defaultNamespace = $targetContext.context.namespace
6464
}
6565

0 commit comments

Comments
 (0)