diff --git a/cloud/scope/util.go b/cloud/scope/util.go index 01310e74..9ffbe788 100644 --- a/cloud/scope/util.go +++ b/cloud/scope/util.go @@ -26,6 +26,9 @@ const ( // GetNsgNamesFromId returns the names of the NSGs with the provided IDs func GetNsgNamesFromId(ids []string, nsgs []*infrastructurev1beta2.NSG) []string { + if len(ids) == 0 { + return nil + } names := make([]string, 0) for _, id := range ids { for _, nsg := range nsgs { diff --git a/docs/src/managed/managedcluster.md b/docs/src/managed/managedcluster.md index 81304a26..a5417154 100644 --- a/docs/src/managed/managedcluster.md +++ b/docs/src/managed/managedcluster.md @@ -44,7 +44,6 @@ CAPI and CAPOCI components using clusterctl][install-cluster-api]. ```bash export EXP_MACHINE_POOL=true -export EXP_OKE=true ``` ### OCI Security Policies