[X2Go-Commits] [pyhoca-cli] 07/11: pyhoca-cli: Extract username from host parameter, if an @ is in the host string.
git-admin at x2go.org
git-admin at x2go.org
Tue Sep 18 18:45:48 CEST 2018
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch master
in repository pyhoca-cli.
commit 119186045a7c4760fd6b855ebe9c3b680a50d63f
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date: Tue Sep 18 11:53:38 2018 +0000
pyhoca-cli: Extract username from host parameter, if an @ is in the host string.
---
pyhoca-cli | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/pyhoca-cli b/pyhoca-cli
index 60373fa..b7c93bd 100755
--- a/pyhoca-cli
+++ b/pyhoca-cli
@@ -290,6 +290,10 @@ Possible values for the --pack NX option are:
if a.version:
version()
+ if not a.username and "@" in a.host:
+ a.username = a.host.split('@')[0]
+ a.host = '@'.join(a.host.split('@')[1:])
+
# if no username is given we use the uid under which this programme is run
if a.username is None and not a.session_profile:
a.username = current_user
--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/pyhoca-cli.git
More information about the x2go-commits
mailing list