--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To post to this group, send email to puppet...@googlegroups.com.
To unsubscribe from this group, send email to puppet-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Huh. This must have changed, as I was doing it in exactly the same
way. Is that actually from an old list message of mine?
I think you've misread the error message. It basically doesn't know
what to do with !ruby/sym at all.
It may turn out nowadays to be simpler to do the parsing in Ruby and
loading the puppet libraries so you get all this for free.
I'll have a poke around and see if I can work out how to coerce
!ruby/sym to something Python can understand.
Douglas,
I've started my tests with Python + Puppet Yaml yesterday, based on http://www.mailinglistarchive.com/html/puppet...@googlegroups.com/2010-05/msg00539.html, and I'm having the same difficulties.
I shall keep working on this script today and I'll post the solution, if I can find it.
Douglas,
I've started my tests with Python + Puppet Yaml yesterday, based on http://www.mailinglistarchive.com/html/puppet...@googlegroups.com/2010-05/msg00539.html, and I'm having the same difficulties.
I shall keep working on this script today and I'll post the solution, if I can find it.
Upon what basis are you saying that the Ruby tags are completely unnecessary?
It's not true and you're taking a particularly shitty attitude for
someone who is asking for help Doug.
Have you ever dumped Python objects to YAML and tried to read them from Ruby?
I've just worked out how to solve your problem but haven't finished it.
I have no desire to do so now.
Here is what I've worked out so far. If you have issues, go read the
pyYAML documentation and YAML spec like I just did.
def sym_representer(dumper, data):
return dumper.represent_scalar(u'!ruby/sym', u'%sd%s' % data)
def sym_constructor(loader, node):
value = loader.construct_scalar(node)
return "foo" # you're going to have to work out how to make your
constructor work.
yaml.add_constructor(u'!ruby/sym', sym_constructor)
Upon what basis are you saying that the Ruby tags are completely unnecessary?
It's not true and you're taking a particularly shitty attitude for
someone who is asking for help Doug.
Have you ever dumped Python objects to YAML and tried to read them from Ruby?
I've just worked out how to solve your problem but haven't finished it.
I have no desire to do so now.
Here is what I've worked out so far. If you have issues, go read the
pyYAML documentation and YAML spec like I just did.
def sym_representer(dumper, data):
return dumper.represent_scalar(u'!ruby/sym', u'%sd%s' % data)
def sym_constructor(loader, node):
value = loader.construct_scalar(node)
return "foo" # you're going to have to work out how to make your
constructor work.
yaml.add_constructor(u'!ruby/sym', sym_constructor)
http://pyyaml.org/wiki/PyYAMLDocumentation#Constructorsrepresentersresolvers
It's not true and you're taking a particularly shitty attitude for
someone who is asking for help Doug.It is true, and you're taking a particularly sensitive attitude for someone that doesn't know me Nigel.
>> It's not true and you're taking a particularly shitty attitude for
>> someone who is asking for help Doug.
>>
>>
>> It is true, and you're taking a particularly sensitive attitude for
>> someone that doesn't know me Nigel.
>
>
> If this was your first post, maybe. But you could fill an
> encyclopedia with examples of you being a dick to people trying to
> help you on this list.
>
obviously a lot of people don't know him...
~pete
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkyiRA4ACgkQbwltcAfKi3+9rACaA1dTntp/pEj5f5iTLwU/63st
1ZUAmgPf3pEzSJBYE70hQGGqiK3a2hnk
=r+x/
-----END PGP SIGNATURE-----
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To post to this group, send email to puppet...@googlegroups.com.
To unsubscribe from this group, send email to puppet-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Upon what basis are you saying that the Ruby tags are completely unnecessary?On Tue, Sep 28, 2010 at 10:08 AM, Douglas Garstang
<doug.g...@gmail.com> wrote:
>
> On Tue, Sep 28, 2010 at 9:50 AM, Eduardo S. Scarpellini
> <scarp...@gmail.com> wrote:
>>
>> Douglas,
>> I've started my tests with Python + Puppet Yaml yesterday, based on
>> http://www.mailinglistarchive.com/html/puppet...@googlegroups.com/2010-05/msg00539.html,
>> and I'm having the same difficulties.
>> I shall keep working on this script today and I'll post the solution, if I
>> can find it.
>>
>>
>
> Eduardo,
> That's about the only document I found on the subject too. I don't know why
> the report document has to be so complicated. The !ruby tags are completely
> unnecessary. I'm not about to go and learn ruby, as I dislike it immensely.
> I guess it might be possible to pre-process the re
Douglas,
just an update: Now Im testing The Foreman (theforeman.org) and I think it covers my main needs (including a ''kind of'' [not so rich] URL API).