lib/kakine/resource/yaml.rb in kakine-0.6.4 vs lib/kakine/resource/yaml.rb in kakine-0.6.5
- old
+ new
@@ -32,10 +32,10 @@
case
when sg[1].nil?
raise(Kakine::ConfigureError, "#{sg_name}:rules and description is required")
when !sg[1].key?("rules")
raise(Kakine::ConfigureError, "#{sg_name}:rules is required")
- when !sg[1].key?("description")
+ when sg_name != 'default' && !sg[1].key?("description")
raise(Kakine::ConfigureError, "#{sg_name}:description is required")
end
end
def validate_rules(sg)