show source in buildinfo display, if available

This commit is contained in:
Mike McLean 2016-05-10 19:04:40 -04:00
parent f9bd7bb1f4
commit 32160aa47e
2 changed files with 8 additions and 0 deletions

View file

@ -3232,6 +3232,9 @@ def anon_handle_buildinfo(options, session, args):
print "BUILD: %(name)s-%(version)s-%(release)s [%(id)d]" % info
print "State: %(state)s" % info
print "Built by: %(owner_name)s" % info
source = info.get('source')
if source is not None:
print "Source: %s" % source
if 'volume_name' in info:
print "Volume: %(volume_name)s" % info
if task: