Sorry for being off topic. am trying the following and yaml fails to
construct the object:

The inventory document, from Puppet dashboard inventory service, looks like:

--- !ruby/object:Puppet::Node::Facts
  name: pirates.uis.example.com
  values:
    productname: VMware Virtual Platform
    kernelmajversion: "2.6"


My code:

class PuppetFacts(yaml.YAMLObject):
    yaml_tag = u'!ruby/object:Puppet::Node::Facts'
    def __init__(self, name, values):
        self.name = name
        self.values = values


The attempt to load the doc results in:


ConstructorError: could not determine a constructor for the tag
'!ruby/object:Puppet::Node::Facts'
  in "<byte string>", line 1, column 5


Thanks a lot,
Mohamed.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to