changeset 187:43a991b873d2

If no explicit name is provided for the slave, use the first part of the host name (i.e. the part up to the first dot).
author cmlenz
date Wed, 31 Aug 2005 17:57:33 +0000
parents 439a8bf0bbcd
children 5a67232c0d69
files bitten/slave.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/bitten/slave.py
+++ b/bitten/slave.py
@@ -65,6 +65,8 @@
                                                          version)
         if self.session.name is not None:
             node = self.session.name
+        else:
+            node = node.split('.', 1)[0]
 
         packages = []
         if self.session.config is not None:
Copyright (C) 2012-2017 Edgewall Software