show hub version in koji hello

This commit is contained in:
Mike McLean 2023-11-08 14:46:46 -05:00 committed by Tomas Kopecek
parent 8e6737a116
commit cfd6d3064f
3 changed files with 7 additions and 4 deletions

View file

@ -7565,7 +7565,7 @@ def handle_moshimoshi(options, session, args):
u = {'name': 'anonymous user'}
print("%s, %s!" % (_printable_unicode(random.choice(greetings)), u["name"]))
print("")
print("You are using the hub at %s" % session.baseurl)
print("You are using the hub at %s (Koji %s)" % (session.baseurl, session.hub_version_str))
authtype = u.get('authtype', getattr(session, 'authtype', None))
if authtype == koji.AUTHTYPES['NORMAL']:
print("Authenticated via password")