Bug 1005684 - Crashes if -u specified before the generator
Crashes if -u specified before the generator
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: fedora-business-cards (Show other bugs)
rawhide
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Ian Weller
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2013-09-09 03:34 EDT by Pierre-YvesChibon
Modified: 2013-09-09 03:49 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2013-09-09 03:49:27 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Pierre-YvesChibon 2013-09-09 03:34:07 EDT
Crashes for me and does not honor the -u option


$ fedora-business-cards -u=pingou --pdf fedora
Login to FAS:
Username:pingou
Password
Traceback (most recent call last):
  File "/usr/bin/fedora-business-cards", line 9, in <module>
    load_entry_point('fedora-business-cards==1.beta1', 'console_scripts', 'fedora-business-cards')()
  File "/usr/lib/python2.7/site-packages/fedora_business_cards/frontend/cmdline.py", line 137, in main
    gen.collect_information()
  File "/usr/lib/python2.7/site-packages/fedora_business_cards/generators/fedora.py", line 74, in collect_information
    self.fields['name'] = userinfo["human_name"]
KeyError: 'human_name'

Note that using ``fedora-business-cards --pdf fedora -u pingou`` seems to work.
Comment 1 Ian Weller 2013-09-09 03:49:27 EDT
-u=pingou is not valid with Python's optparse

Note You need to log in before you can comment on or make changes to this bug.