~openstack-charmers-next/charms/precise/ceilometer/trunk

« back to all changes in this revision

Viewing changes to charmhelpers/contrib/openstack/exceptions.py

  • Committer: James Page
  • Date: 2016-05-27 11:24:31 UTC
  • Revision ID: james.page@ubuntu.com-20160527112431-uv4jk5o96hva128v
Resync charm helpers

Add support for OpenStack Newton and Ocata.

Rework version detection code to just match on major version for
OpenStack projects using semantic versioning.

Provide fallback version detection based on major.minor versions
for swift packages.

Rework config-flags support helpers.

Fix is_ip function to correctly detect both IPv4 and IPv6 addresses.

Change-Id: I04abcebe8181810c4c66e1f0691f5693ce7f7827

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
class OSContextError(Exception):
 
2
    """Raised when an error occurs during context generation.
 
3
 
 
4
    This exception is principally used in contrib.openstack.context
 
5
    """
 
6
    pass