We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ea7c64 commit eb7c231Copy full SHA for eb7c231
controllers/azuremachine_reconciler.go
@@ -18,6 +18,7 @@ package controllers
18
19
import (
20
"context"
21
+ "strings"
22
23
"github.com/pkg/errors"
24
@@ -101,10 +102,13 @@ func newAzureMachineService(machineScope *scope.MachineScope) (*azureMachineServ
101
102
virtualmachinesSvc,
103
roleAssignmentsSvc,
104
vmextensionsSvc,
- tagsSvc,
105
},
106
skuCache: cache,
107
}
108
+ if !strings.EqualFold(machineScope.CloudEnvironment(), azure.StackCloudName) {
109
+ ams.services = append(ams.services, tagsSvc)
110
+ }
111
+
112
ams.Reconcile = ams.reconcile
113
ams.Pause = ams.pause
114
ams.Delete = ams.delete
0 commit comments