# File lib/puppet/provider/zone/solaris.rb, line 10
10:   def self.line2hash(line)
11:     fields = [:id, :name, :ensure, :path]
12: 
13:     properties = {}
14:     line.split(":").each_with_index { |value, index|
15:       next unless fields[index]
16:       properties[fields[index]] = value
17:     }
18: 
19:     # Configured but not installed zones do not have IDs
20:     properties.delete(:id) if properties[:id] == "-"
21: 
22:     properties[:ensure] = symbolize(properties[:ensure])
23: 
24:     properties
25:   end