[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
control variable not being parsed correctly
From: |
Adrian Phillips |
Subject: |
control variable not being parsed correctly |
Date: |
08 Jul 2002 13:54:02 +0200 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 |
- cfengine-2.0.3
- linux, (Debian woody)
control::
cpu = ( "exec /usr/local/sbin/sysinfo -T" )
.
.
.
smtp2::
kernel_image = ( kernel-image-2.4.19-rc1+uml-host-2.4-up-${cpu}
)
gives the following error :-
cf:smtp2:/etc/cfengine/cf.include:160: parse error
doing a debug gives :-
HandleId(cpu) in action Control Defintions:
HandleId2(62) in action
RecordMacroId(cpu)
LEFTBRACK
HandleItem(exec /usr/local/sbin/sycf:smtp2:/etc/cfengine/cf.include:160:
Incomplete variable syntax or bracket m\
ismatch
sinfo -T)
simple item = (exec /usr/local/sbin/sysinfo -T)
GetExecOutput(/usr/local/sbin/sysinfo -T,exec /usr/local/sbin/sysinfo -T)
cfpopen(/usr/local/sbin/sysinfo -T)
GetExecOutput got: [K7 ]
cfpclose(pp)
cfpopen - Waiting for process 15269
(Action is control, variable [cpu=K7])
Define:: variable [cpu=K7])
AddMacroValue(cpu=K7)
Added Macro at hash address 621: cpu=K7
Quoted macro string exec /usr/local/sbin/sysinfo -T
RIGHTBRACK
.
.
.
HandleClass(smtp2)
Simple identifier or class = (smtp2)
HandleId(kernel_image) in action Control Defintions:
HandleId2(62) in action
RecordMacroId(kernel_image)
LEFTBRACK
LEX: wildcard, I think I lov you...but i wanna know for sure
wildcard = (kernel-image-2.4.19-rc1+uml-host-2.4-up-${cpu)
AddMacroValue(kernel_image=kernel-image-2.4.19-rc1+uml-host-2.4-up-${cpu)
CompareMacro(cpu,cpu=K7)=cpu
CompareMacro(rootvg,rootvg=rootvg)=rootvg
CompareMacro(rootvg,rootvg=rootvg)=rootvg
Added Macro at hash address 756:
kernel_image=kernel-image-2.4.19-rc1+uml-host-2.4-up-K7 )
I'm still investigating, but struggling I must admit,
Sincerely,
Adrian Phillips
--
Your mouse has moved.
Windows NT must be restarted for the change to take effect.
Reboot now? [OK]
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- control variable not being parsed correctly,
Adrian Phillips <=