| Summary: | Crashes if -u specified before the generator | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Pierre-YvesChibon <pingou> |
| Component: | fedora-business-cards | Assignee: | Ian Weller <ian> |
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | ian |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-09-09 07:49:27 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
-u=pingou is not valid with Python's optparse |
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.