Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Object parse only getting first character for each field #3

Open
cpuguy83 opened this issue Oct 19, 2011 · 4 comments
Open

Object parse only getting first character for each field #3

cpuguy83 opened this issue Oct 19, 2011 · 4 comments
Assignees

Comments

@cpuguy83
Copy link

The object parser is only pulling the first character for each field:

Example: {"use"=>"e", "host_name"=>"5", "alias"=>"B", "address"=>"1", "hostgroups"=>"e", "parents"=>"5"}

@bernd
Copy link
Owner

bernd commented Oct 21, 2011

Hmm, that looks weird. Can you provide me with an anonymized object config example?

@cpuguy83
Copy link
Author

define host{
use switch
host_name Foo-ibb
alias Foo iBootBar
address 10.3.1.20
hostgroups iboots,Foo
parents Foo-modem
}

@bernd
Copy link
Owner

bernd commented Oct 22, 2011

I added a spec file with your code example. (6d80545) I cannot reproduce the value truncation here on my Linux/i386 machine with ruby 1.8.7/1.9.x.

What ruby version and operating system are you using?

@ghost ghost assigned bernd Oct 22, 2011
@cpuguy83
Copy link
Author

1.9.2p290 on OS X Lion.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants