[Bug 1546203] Re: api should expose container uid in a clean fashion
James Page
james.page at ubuntu.com
Mon Oct 23 12:40:50 UTC 2017
I've pushed this bug upstream:
https://github.com/lxc/pylxd/issues/255
Closing distro specific bug.
** Changed in: python-pylxd (Ubuntu)
Status: New => Triaged
** Bug watch added: github.com/lxc/pylxd/issues #255
https://github.com/lxc/pylxd/issues/255
** Changed in: python-pylxd (Ubuntu)
Status: Triaged => Invalid
--
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to python-pylxd in Ubuntu.
https://bugs.launchpad.net/bugs/1546203
Title:
api should expose container uid in a clean fashion
Status in python-pylxd package in Ubuntu:
Invalid
Bug description:
Currently I'm getting the container uid as follows, which is ugly and
presumably fragile:
vsm = lxd_api.get_container_config(container_name)['config']['volatile.last_state.idmap']
return ast.literal_eval(vsm.replace('true', 'True').replace('false', 'False'))[0]["Hostid"]
python-pylxd should expose this in a clean way.
ProblemType: Bug
DistroRelease: Ubuntu 15.10
Package: python-pylxd 0.18-0ubuntu1.1
Uname: Linux 4.2.0-040200rc3-generic i686
ApportVersion: 2.19.1-0ubuntu5
Architecture: i386
CurrentDesktop: Unity
Date: Tue Feb 16 16:46:22 2016
EcryptfsInUse: Yes
InstallationDate: Installed on 2011-10-04 (1596 days ago)
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Beta i386 (20110921.2)
PackageArchitecture: all
SourcePackage: python-pylxd
UpgradeStatus: Upgraded to wily on 2015-11-19 (89 days ago)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-pylxd/+bug/1546203/+subscriptions
More information about the Ubuntu-openstack-bugs
mailing list