lib/bolt/puppetfile/module.rb in bolt-2.30.0 vs lib/bolt/puppetfile/module.rb in bolt-2.31.0

- old
+ new

@@ -11,10 +11,13 @@ attr_reader :owner, :name, :version def initialize(owner, name, version = nil) @owner = owner @name = name - @version = version unless version == :latest + + if version.is_a?(String) + @version = version[0] == '=' ? version[1..-1] : version + end end # Creates a new module from a hash. # def self.from_hash(mod)