On Friday 26 February 2010 15:46:19 Lars Marowsky-Bree wrote:
> On 2010-02-25T12:32:50, Dejan Muhamedagic <[email protected]> wrote:
> > > How would I match two hostnames:
> > >
> > > host_a='shrek' host_b='shrek '
> > >
> > > I don't know how to do that without RE in shell. I'll gladly change
> > > my stupid solution.
> 
> I didn't say your solution was stupid, I was actually agreeing with you
> ;-)
> 
> > You can try:
> >
> > is_hostname_in_list() {
> > for h in $VAR; do
> >     [ "$h" = "$HOSTNAME" ] && return 0
> > done
> > return 1
> > }
> 
> The RA also should make sure that the list only contains one value. But
> yes, this should work.
> 

Is it actually possible to have more then one nodes in this variable for 
Master/Slave resources ?

> 
> Regards,
>     Lars
> 

-- 
Best regards,
Marian Marinov

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________________
Linux-HA-Dev: [email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/

Reply via email to