Commit Graph

6 Commits

Author SHA1 Message Date
Flaper Fesp 7818387d4a Replace utils.ensure_(str|unicode) with strutils.safe(decode|encode)
Glanceclient implemented both functions before they landed into oslo.
Since both functions are already in oslo, it is now possible to pull
them in.

There's a small difference between glance's implementation and oslo's,
that is the later does not convert non-str objects - int, bool - to str
before trying to decode / encode them. This patch takes care of that
where necessary, more precisely, while encoding headers before doing a
new request.

Fixes bug: #1172253

Change-Id: I9a0dca31140bae28d8ec6aede515c5bb852b701b
2013-06-04 00:42:32 +02:00
Flaper Fesp 9e515245a3 Update importutils and openstack-common.conf format
THe patch updates the importutils module and uses a per-line module
specification instead of the old modules= options.

Change-Id: Ieb28780bb9034fd61942305ff1eec21b3637027a
2013-05-23 11:11:56 +02:00
Monty Taylor 4f9d4d051a Migrate to pbr.
Fixes bug 1179007.

Change-Id: I99d571bbf37ef53366a96de088c249cb6fd23b0e
2013-05-18 09:02:07 -07:00
Monty Taylor a814c15465 Add ability to get version information in python
* A user can access glanceclient.__version__ to get a string
  representing the version of the installed library.
* Add openstack-common's 'version' module.

Change-Id: Ib14c561d8ac0b126617a20acfbd5fdb61c54f2c7
2012-07-11 14:04:09 -07:00
Brian Waldon 623a0898f8 Add importutils from openstack-common
As a side-effect, openstack.common.setup is getting updated

Change-Id: I9f8696ec5c82ef32872e1a974102dcd179eb70f9
2012-05-20 13:08:20 -07:00
Monty Taylor 57e352a070 All the latest OpenStack hotness. 2012-02-29 14:14:14 -08:00