PermissionError undefined on python 2.7
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Fix Released
|
Medium
|
Unassigned |
Bug Description
running cloud-init-
as non-root user when I run `cloud-init status` I get the following error.
Traceback (most recent call last):
File "/usr/bin/
load_
File "/usr/lib/
get_
File "/usr/lib/
ret = func(*args, **kwargs)
File "/usr/lib/
init.read_cfg()
File "/usr/lib/
self._cfg = self._read_
File "/usr/lib/
return merger.cfg
File "/usr/lib/
self._cfg = self._read_cfg()
File "/usr/lib/
cfgs.
File "/usr/lib/
except PermissionError:
NameError: global name 'PermissionError' is not defined
seems like it needs some workaround for python 2.7 similar to this one in some other project:
https:/
Changed in cloud-init: | |
status: | Fix Committed → Fix Released |
Here's the commit that added this PermissionError: /github. com/cloud- init/cloud- init/commit/ fc4b966ba928b30 b1c586407e752e0 b51b1031e8
https:/
in 18.4