[X2Go-Commits] [x2gobroker] 01/01: x2gobroker/brokers/inifile_broker.py: Make sure profile['name'] has a fallback if not given in the session profile.
git-admin at x2go.org
git-admin at x2go.org
Tue May 1 12:20:58 CEST 2018
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch master
in repository x2gobroker.
commit e84f1929543dea804fbb1c82a107907668745c11
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date: Tue May 1 12:20:46 2018 +0200
x2gobroker/brokers/inifile_broker.py: Make sure profile['name'] has a fallback if not given in the session profile.
---
x2gobroker/brokers/inifile_broker.py | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/x2gobroker/brokers/inifile_broker.py b/x2gobroker/brokers/inifile_broker.py
index 04f83c5..cb9ce87 100644
--- a/x2gobroker/brokers/inifile_broker.py
+++ b/x2gobroker/brokers/inifile_broker.py
@@ -108,6 +108,11 @@ class X2GoBroker(base.X2GoBroker):
profile[key].append(_hostname)
else:
profile[key].append(host)
+
+ # obligatory profile keys:
+ if 'name' not in profile:
+ profile['name'] = profile_id
+
return profile
def get_profile_broker(self, profile_id):
--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/x2gobroker.git
More information about the x2go-commits
mailing list