summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2013-09-21 16:52:55 -0700
committerelijah <elijah@riseup.net>2013-09-21 16:52:55 -0700
commitd8b9ab39d333de6494e5006b3ba4abf4b8901bca (patch)
tree96ab672b90c6399116b5d643c036eecec14b218f
parent5e582cbf9e2cd135009965433b4cd2a7747732ed (diff)
ensure that contacts.default is an array, and is required (requires latest leap_cli).
-rw-r--r--platform.rb2
-rw-r--r--provider_base/provider.json4
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",