Commit 9cc29163 authored by Christian Jung's avatar Christian Jung

better error handling

parent 1a22ea83
Pipeline #57263821 passed with stage
in 4 seconds
......@@ -4,8 +4,9 @@ begin
# get currently selected tags
current_tag = $evm.root["dialog_tag_control_1"]
$evm.log("info", "Current Tag is: #{current_tag}")
tag_name = current_tag[0].name
if current_tag[0].name.nil? then
lans['!'] = '-- select tag first --'
else
$evm.vmdb(:ems_cluster).all.each do |cluster|
tags = cluster.tags
$evm.log("info", "Current cluster #{cluster.name} tags: #{tags}")
......@@ -25,6 +26,7 @@ begin
end
end
end
end
if lan = {} then
lans['!'] = '-- select tag first --'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment