From 2f3409db080f3dc13752af48418a4f6406f5f52a Mon Sep 17 00:00:00 2001 From: Chris Church Date: Wed, 16 Oct 2013 12:42:46 -0400 Subject: [PATCH] AC-558 When importing from Rackspace, add environment variable to make vendored package happy. --- awx/main/tasks.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/awx/main/tasks.py b/awx/main/tasks.py index 3e55337101..7a896ee777 100644 --- a/awx/main/tasks.py +++ b/awx/main/tasks.py @@ -772,6 +772,9 @@ class RunInventoryUpdate(BaseTask): elif inventory_source.source == 'rackspace': env['RAX_CREDS_FILE'] = kwargs.get('private_data_file', '') env['RAX_REGION'] = inventory_source.source_regions + # Set this environment variable so the vendored package won't + # complain about not being able to determine its version number. + env['PBR_VERSION'] = '0.5.21' elif inventory_source.source == 'file': # FIXME: Parse source_env to dict, update env. pass