From d8b9ab39d333de6494e5006b3ba4abf4b8901bca Mon Sep 17 00:00:00 2001 From: elijah Date: Sat, 21 Sep 2013 16:52:55 -0700 Subject: ensure that contacts.default is an array, and is required (requires latest leap_cli). --- platform.rb | 2 +- provider_base/provider.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/platform.rb b/platform.rb index c68aac86..60b0d9a5 100644 --- a/platform.rb +++ b/platform.rb @@ -4,7 +4,7 @@ Leap::Platform.define do self.version = "0.2.4" - self.compatible_cli = "1.2.3".."1.99" + self.compatible_cli = "1.2.4".."1.99" # # the facter facts that should be gathered diff --git a/provider_base/provider.json b/provider_base/provider.json index 84ef640e..5b335e8a 100644 --- a/provider_base/provider.json +++ b/provider_base/provider.json @@ -8,8 +8,8 @@ "en": "REQUIRED" }, "contacts": { - "default": "REQUIRED", - "english": "= contacts.default.split('@').join(' at the domain ')" + "default": ["REQUIRED"], + "english": "= contacts.default.map {|email| email.split('@').join(' at the domain ')}.join(', ')" }, "languages": ["en"], "default_language": "en", -- cgit v1.2.3