Also allow a nil for init_config
MODIFY
resources/monitor.rb
resources/monitor.rb
@@ -8,7 +8,7 @@ property :cookbook, String, default: 'datadog'
# checks have 2 sections: init_config and instances
# we mimic these here, no validation is performed until the template
# is evaluated.
-property :init_config, Hash, required: false, default: {}
+property :init_config, [Hash, nil], required: false, default: {}
property :instances, Array, required: false, default: []
property :version, [Integer, nil], required: false, default: nil
property :use_integration_template, [TrueClass, FalseClass], required: false, default: false

Also allow a nil for init_config