lol

taskserver/helpertool: Fix error message on export

The error message displays that a specific user doesn't exist in an
organisation, but uses the User object's name attribute to show which
user it was.

This is basically a very stupid chicken and egg problem and easily fixed
by using the user name provided on the command line.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>

aszlig 32c2e8f4 a5e9668c

+1 -1
+1 -1
nixos/modules/services/misc/taskserver/helper-tool.py
··· 526 526 userobj = organisation.get_user(user) 527 527 if userobj is None: 528 528 msg = "User {} doesn't exist in organisation {}." 529 - sys.exit(msg.format(userobj.name, organisation.name)) 529 + sys.exit(msg.format(user, organisation.name)) 530 530 531 531 sys.stdout.write(userobj.export()) 532 532