Skip to content

Commit 0171e87

Browse files
committed
Always get backplaneURL from ocm env
1 parent 65653f7 commit 0171e87

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

Diff for: cmd/ocm-backplane/remediation/remediation.go

+2-8
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,7 @@ func runCreateRemediation(args []string, clusterKey string, urlFlag string) erro
103103
return err
104104
}
105105

106-
bpURL := globalOpts.BackplaneURL
107-
if bpURL == "" {
108-
bpURL = bpConfig.URL
109-
}
106+
bpURL := bpConfig.URL
110107

111108
clusterID := bpCluster.ClusterID
112109

@@ -212,10 +209,7 @@ func runDeleteRemediation(args []string, clusterKey string, urlFlag string) erro
212209
return err
213210
}
214211

215-
bpURL := globalOpts.BackplaneURL
216-
if bpURL == "" {
217-
bpURL = bpConfig.URL
218-
}
212+
bpURL := bpConfig.URL
219213

220214
clusterID := bpCluster.ClusterID
221215

0 commit comments

Comments
 (0)