diff options
author | Bin Yang <bin.yang@windriver.com> | 2019-03-26 09:01:45 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-03-26 09:01:45 +0000 |
commit | 1ab1af62578c1c2bf7b3b2e56827fe408cabdbb3 (patch) | |
tree | b560bf324f2a8978285249d7b38b240f62b0e65f /src | |
parent | 25682fe21ea85e807490229c2e8c8fd6a5963d25 (diff) | |
parent | a871bc854cbd001bf92040298f3093001b8cf5fd (diff) |
Merge "Fix namespace creation"
Diffstat (limited to 'src')
-rw-r--r-- | src/k8splugin/internal/app/vnfhelper.go | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/k8splugin/internal/app/vnfhelper.go b/src/k8splugin/internal/app/vnfhelper.go index f7c4596d..5984bbd0 100644 --- a/src/k8splugin/internal/app/vnfhelper.go +++ b/src/k8splugin/internal/app/vnfhelper.go @@ -47,11 +47,8 @@ func ensuresNamespace(namespace string, kubeclient kubernetes.Interface) error { return pkgerrors.Wrap(err, "Error fetching get namespace function") } - ns, err := symGetNamespaceFunc.(func(string, string, kubernetes.Interface) (string, error))( + ns, _ := symGetNamespaceFunc.(func(string, string, kubernetes.Interface) (string, error))( namespace, namespace, kubeclient) - if err != nil { - return pkgerrors.Wrap(err, "An error ocurred during the get namespace execution") - } if ns == "" { log.Println("Creating " + namespace + " namespace") |