X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FN2VC.git;a=blobdiff_plain;f=n2vc%2Fkubectl.py;h=d67f4db5a4e4dd5f56098ffa4bb05e6f2dedda60;hp=bc8c3927d9537fbffb4e8bca3170def835c5683b;hb=979c54e4633964caf15a0f7e157be75a08cb0723;hpb=82b591ceed704c798ead2d9104085a08e75b511b 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()