Strip leading / from afs targets

It seems that Jenkins does this.  At least with FTP.  We don't have
any leading / on AFS targets, but do the same there for symmetry.

Change-Id: Icb7451c0f3f5fa62c8a15fc621fd30f2df166c96
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2016-09-30 19:58:24 -04:00
parent 5b9b2bdf02
commit fd97be44d9
No known key found for this signature in database
GPG Key ID: 611A80832067AF38
1 changed files with 1 additions and 1 deletions

View File

@ -1131,7 +1131,7 @@ class NodeWorker(object):
task.update(self.retry_args)
tasks.append(task)
afstarget = afs['target']
afstarget = afs['target'].lstrip('/')
afstarget = self._substituteVariables(afstarget, parameters)
afstarget = os.path.join(site['root'], afstarget)
afstarget = os.path.normpath(afstarget)