X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=templates%2Fprofiles%2Fhost%2Fcompute-r01.j2;h=4e942be5a3ee960b67e9739b7eb73e2c8b691a11;hb=f3884a45cd16542418f580a433c47f0a09843323;hp=be609de3f6873047207bc05897dde9839f9a7217;hpb=32afa4968f2c93a8c647ff8a29714540db3f1823;p=yaml_builds.git diff --git a/templates/profiles/host/compute-r01.j2 b/templates/profiles/host/compute-r01.j2 index be609de..4e942be 100644 --- a/templates/profiles/host/compute-r01.j2 +++ b/templates/profiles/host/compute-r01.j2 @@ -74,7 +74,7 @@ data: physical_devices: {% for disk in yaml.disks_compute %} {{disk.name}}: - {% if disk.labels %} + {% if 'labels' in disk %} labels: {% for key, value in disk.labels.items() %} {{key}}: '{{value}}'