X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FN2VC.git;a=blobdiff_plain;f=n2vc%2Fkubectl.py;h=d67f4db5a4e4dd5f56098ffa4bb05e6f2dedda60;hp=bc8c3927d9537fbffb4e8bca3170def835c5683b;hb=4395cfa6c7d0d80980c00d9f078440e0333fd826;hpb=f6e9b00b6f7cd35e45ace4c84b53fe8d12b2438c diff --git a/n2vc/kubectl.py b/n2vc/kubectl.py index bc8c392..d67f4db 100644 --- a/n2vc/kubectl.py +++ b/n2vc/kubectl.py @@ -96,7 +96,7 @@ class Kubectl: if not selected_sc: # Select the first storage class in case there is no a default-class selected_sc = sc.metadata.name - annotations = sc.metadata.annotations + annotations = sc.metadata.annotations or {} if any( k in annotations and annotations[k] == v for k, v in default_sc_annotations.items()