Hello!
We have an issue with slave names. Basically we all want to have the slave names to be exactly as hostnames. So “render01” will have a slave with name “render01”, and everytime we try to force it using a name starting with a small letter it becomes one with a capital instead, so: “deadlineslave -name render01” becomes “Render01”, and “deadlineslave -name temp” becomes “Temp”. Any chance of this being fixed?
This was actually done this way by design. Why you ask? I honestly don’t know (that decision was made before my time).
Theoretically, it’s an easy change, but we don’t know what the ramifications are (if there are any). We’ll put this on the wish list for the release following 5.1.
Cheers,
Well, it messes up our scripting. Instead of hostname we have to parse it to get the slave name starting from capital letter.
Can you provide more details about the scripting you’re doing (language, what you’re trying to accomplish, etc)? We might be able to help you find a decent workaround for now.
If it was earlier in the beta, we would feel more comfortable making this change. A lot of internal operations rely on using the Slave name, so it’s just too risky to make this change. We already have it on the todo list for the next release.
Cheers,
Well, for the time being we’re scripting on Fedora with Bash, for our custom plugins we use Python.
There is an option for case insensitive checks in bash, if that helps for now:
linuxquestions.org/questions … ve-676101/
For python, you could always use lower() on the strings before comparing them.
Cheers,
Ok, we will check that workaround. Thanks!
This feature doesn’t have any negative ramifications on our end, but it would be very nice to get rid of the big letter in a later release if possible, if only for consistancy’s sake
Use python string.capitlize()
from socket import gethostname
#Find out which slave to work on, our local machine
#Get hostname
full_hostname = gethostname()
#Strip off the end
hostname = full_hostname.partition(".")
print “Hostname = '” + hostname[0] + “’”
#Take the necessary part and form it to match Deadline
myslave = hostname[0]
myslave = myslave.capitalize()
-Andy