X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=templates%2Fprofiles%2Fhost%2Fcp-r01.j2;h=e66e85cd7d7e989c89299c41affd4de4f8ce5d42;hb=f3884a45cd16542418f580a433c47f0a09843323;hp=e59df9175084509aaaf94582195a18452e3d7c56;hpb=32afa4968f2c93a8c647ff8a29714540db3f1823;p=yaml_builds.git diff --git a/templates/profiles/host/cp-r01.j2 b/templates/profiles/host/cp-r01.j2 index e59df91..e66e85c 100644 --- a/templates/profiles/host/cp-r01.j2 +++ b/templates/profiles/host/cp-r01.j2 @@ -73,7 +73,7 @@ data: physical_devices: {% for disk in yaml.disks %} {{disk.name}}: - {% if disk.labels %} + {% if 'labels' in disk %} labels: {% for key, value in disk.labels.items() %} {{key}}: '{{value}}'