use of charmhelpers log function raise exception if not under juju environment
Bug #1425938 reported by
Thierry FAUCK
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Juju Charm Tools |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
When creating a python script with charmhelpers, the problem is that log() function calls a juju-log() function which is only integrated in juju.
As such trying to execute
will raise an exception: OSError: [Errno 2] No such file or directory
affects: | numactl (Ubuntu) → charm-tools |
To post a comment you must log in.
For people willing to use charmhelpers out of juju, bypass is to use a script called juju-log located in the default search path.