diff --git a/lib/puppet/type/zpool.rb b/lib/puppet/type/zpool.rb
index <HASH>..<HASH> 100755
--- a/lib/puppet/type/zpool.rb
+++ b/lib/puppet/type/zpool.rb
@@ -4,6 +4,7 @@ module Puppet
     class VDev < Property
 
       def flatten_and_sort(array)
+        array = [array] unless array.is_a? Array
         array.collect { |a| a.split(' ') }.flatten.sort
       end
(#<I>) Handle case where array is actually a string

Another case where in Ruby <I> you can call enumerable methods on
strings that you can't in Ruby <I>.

    undefined method `collect' for "dev2 dev1":String