Browse code

Ensure python is installed

devstack can call python before parsing the
package requirements, so the python installation
needs to be done eralier.

Closes-Bug: #1488625
Change-Id: I85cca899aeedd741cf7dc695435d61390e260f22

Attila Fazekas authored on 2015/11/05 17:47:38
Showing 1 changed files
... ...
@@ -335,6 +335,10 @@ if [ -z "`grep ^127.0.0.1 /etc/hosts | grep $LOCAL_HOSTNAME`" ]; then
335 335
     sudo sed -i "s/\(^127.0.0.1.*\)/\1 $LOCAL_HOSTNAME/" /etc/hosts
336 336
 fi
337 337
 
338
+# Ensure python is installed
339
+# --------------------------
340
+is_package_installed python || install_package python
341
+
338 342
 
339 343
 # Configure Logging
340 344
 # -----------------