2014-02-27 9:19 GMT+01:00 Steven Armstrong <notifications@github.com>:

> In cdist/conf/type/__key_value/gencode-remote:
>
> > +    # import variables in a secure way ..
> > +    state=ENVIRON["state"]
> > +    key=ENVIRON["key"]
> > +    delimiter=ENVIRON["delimiter"]
> > +    value=ENVIRON["value"]
> > +    comment=ENVIRON["comment"]
> > +    keydel=key delimiter
> > +    line=keydel value
> > +    inserted=0
> > +    ll=""
> > +    llpopulated=0
> > +}
> > +# enter the main loop
> > +{
> > +    # I dont use regex, this is by design, so we can match against every value without special meanings of chars ...
> > +    i = index(\$0,keydel)
>
> Following on the above comment, maybe the logic here could/should be:
>
>    - scan for key
>    - if found, scan in columns for delimiter
>    - if found, take rest of columns as value
>
> This sounds like a plan to me,,, i will look over the code
and test if its possible without breaking someting  ..

>
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/telmich/cdist/pull/317/files#r10115152>
> .
>