Fixed escaping of \. in seed/upgrade-db graph

Python's YAML parser failed to parse this file
due to the unknown escape symbol.

Change-Id: I1ec3d0752bb6ee6f09e5cf47bf01a55f60dd7926
This commit is contained in:
Dmitry Nikishov 2016-10-21 10:26:20 +03:00
parent d071673790
commit a266053a04
1 changed files with 2 additions and 1 deletions

View File

@ -86,7 +86,8 @@
requires: [rsync_octane, db_sync]
required_for: []
condition:
yaql_exp: "$.upgrade.relation_info.orig_cluster_version =~ '[6-7]\.[0-1]' and $.upgrade.relation_info.seed_cluster_version =~ '9\.[1-9]'"
# Double slashes so that Python's YAML parser doesn't try to escape \.
yaql_exp: "$.upgrade.relation_info.orig_cluster_version =~ '[6-7]\\.[0-1]' and $.upgrade.relation_info.seed_cluster_version =~ '9\\.[1-9]'"
parameters:
puppet_manifest: /etc/fuel/octane/puppet/octane_tasks/modular/neutron_migrations_for_fuel_8.pp
puppet_modules: /etc/fuel/octane/puppet:/etc/puppet/modules