fixed code to work with python3.7

This commit is contained in:
milkmix 2019-10-09 18:33:47 +02:00
parent d0ce162559
commit adb453dd2d
2 changed files with 57 additions and 64 deletions

View file

@ -1,12 +1,11 @@
---
- block:
- name: Build python virtual environment
- name: Build python virtual environment
import_tasks: venv.yml
- name: Include prompts
- name: Include prompts
import_tasks: prompts.yml
- block:
- block:
- set_fact:
algo_region: >-
{% if region is defined %}{{ region }}
@ -63,8 +62,3 @@
CLOUDSTACK_CONFIG: "{{ algo_cs_config }}"
CLOUDSTACK_REGION: "{{ algo_cs_region }}"
rescue:
- debug: var=fail_hint
tags: always
- fail:
tags: always

View file

@ -51,5 +51,4 @@
[{{ default_zone }}]
register: _algo_region
when: region is undefined
environment:
PYTHONPATH: "{{ cloudstack_venv }}/lib/python2.7/site-packages/"