Bug 599086
| Summary: | improve configfile handling | ||
|---|---|---|---|
| Product: | [Retired] Beaker | Reporter: | Karel Volný <kvolny> |
| Component: | command line | Assignee: | Bill Peck <bpeck> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | |
| Severity: | medium | Docs Contact: | |
| Priority: | low | ||
| Version: | 0.5 | CC: | bpeck, kbaker, mcsontos, rmancy |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2010-06-09 21:06:49 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Karel Volný
2010-06-02 16:25:36 UTC
Thanks for the report.
the error message will be fixed in kobo. Ed Santiago already provided Daniel Mach a patch for that. So as soon as kobo is updated we will get it.
I did update the code to print a warning if no user config is present.
diff --git a/Client/src/bkr/client/__init__.py b/Client/src/bkr/client/__init__.py
index c60a76c..863ba0f 100644
--- a/Client/src/bkr/client/__init__.py
+++ b/Client/src/bkr/client/__init__.py
@@ -22,6 +22,7 @@ class BeakerCommand(ClientCommand):
conf = old_conf
else:
conf = "/etc/beaker/client.conf"
+ sys.stderr.write("%s not found, using %s\n" % (user_conf, conf))
os.environ[conf_environ_key] = conf
class BeakerWorkflow(BeakerCommand):
This will be in the next release.
|