Browse Source

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
changes/66/389566/1
Dmitry Nikishov 2 years ago
parent
commit
a266053a04
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      deployment/puppet/octane_tasks/graphs/seed/upgrade-db.yaml

+ 2
- 1
deployment/puppet/octane_tasks/graphs/seed/upgrade-db.yaml View File

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

Loading…
Cancel
Save