Fix pbr if running without git or sdist
This commit is contained in:
parent
f0c9439947
commit
59f5007787
@ -17,5 +17,10 @@ import pbr.version
|
|||||||
from redfish.main import *
|
from redfish.main import *
|
||||||
#import redfish.types
|
#import redfish.types
|
||||||
|
|
||||||
|
try:
|
||||||
__version__ = pbr.version.VersionInfo('redfish').version_string()
|
__version__ = pbr.version.VersionInfo('redfish').version_string()
|
||||||
|
except Exception, e:
|
||||||
|
if "Versioning for this project requires either an sdist tarball" in e.message:
|
||||||
|
pass
|
||||||
|
else:
|
||||||
|
raise
|
||||||
|
Loading…
Reference in New Issue
Block a user