Re: Bug when using a string variable with the same value as a perms body promise name

Mark Burgess <[email protected]> Fri, 05 Feb 2010 07:20:07 +0100
Newsgroups gmane.comp.sysutils.cfengine.bugs
Message-ID <[email protected]>
Jean Noel, I find this hard to believe. You need to send your complete exam=
ple to see what
is going on here. Where did you call this body? Please send the complete fi=
le you have
been trying to compile.

The Mantis system is up and running. Go to troubleshooting, or developer.

Jean-No=EBl Rivasseau wrote:
> Hi, I am using 3.0.3 here.
> =

> If I use:
> =

>     vars:
>         "backupHost" string =3D>"backup";
> =

> when I have the following defined:
> =

> body perms backup
> {
>     owners =3D> {"backup"};
>     groups =3D> {"backup"};
>     mode =3D> "go-rwx";
> }
> =

> cf-agent will error out during the parsing phase will the following error:
> =

> Body type mismatch for body reference "backup" in promise at line 46 of
> /var/cfengine/inputs/backup.cf <http://backup.cf>
> =

> My current workaround is:
> =

>     vars:
>         "backupHost" string =3D> execresult("/bin/echo backup", "noshell"=
);
> =

> but obviously it's ugly. Can you fix this?
> =

> Thanks
> Jean-Noel
> =

> PS: When will the bugzilla / Mantis or whatever will be ready?
> =

> =

> ------------------------------------------------------------------------
> =

> _______________________________________________
> Bug-cfengine mailing list
> [email protected]
> https://cfengine.org/mailman/listinfo/bug-cfengine

-- =

Mark Burgess

-------------------------------------------------
Professor of Network and System Administration
Oslo University College, Norway

Personal Web: http://www.iu.hio.no/~mark
Office Telf : +47 22453272
-------------------------------------------------