[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Condor-users] Dynamic file system domain



On 3/16/2012 11:27 AM, Ben Cotton wrote:
On Thu, Mar 15, 2012 at 3:37 PM, Sebastian Herbert
<herbert@xxxxxxxxxxxxx>  wrote:

Is it possible to use any of these to have a single expression for
FILESYSTEM_DOMAIN that would give the correct answer for all of our hosts? I
wasn't able to find anything promising in my searching.

Would something like

FILESYSTEM_DOMAIN = ifthenelse( regexp("substringofhostname",
FULL_HOSTNAME), fsdomain1, fsdomain2 )

work for you?


I don't think the above will work - you can use classad expressions in the condor_config file wherever you would normally use an integer, bool, or float literal, but necessarily for strings.

Unfortunately I don't have any bright ideas either for how to accomplish the above :(, other than improving this situation in the code for a future release...

Todd