From 1287f5d5bff3389fd6f41055ac8f34554577e7fc Mon Sep 17 00:00:00 2001
From: caoyuan <cao.yuan@99cloud.net>
Date: Tue, 24 Jan 2017 15:48:51 +0800
Subject: [PATCH] Fix undefine error for watcher bootstrap.yml

Change-Id: I864952d4fe754416ed4eab41aed2ab65d41ef52c
Closes-Bug: #1658918
---
 ansible/roles/watcher/tasks/bootstrap.yml | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/ansible/roles/watcher/tasks/bootstrap.yml b/ansible/roles/watcher/tasks/bootstrap.yml
index 58da9f296c..3c68da558e 100644
--- a/ansible/roles/watcher/tasks/bootstrap.yml
+++ b/ansible/roles/watcher/tasks/bootstrap.yml
@@ -7,7 +7,7 @@
       login_port: "{{ database_port }}"
       login_user: "{{ database_user }}"
       login_password: "{{ database_password }}"
-      name: "{{ wather_database_name }}"
+      name: "{{ watcher_database_name }}"
   register: database
   run_once: True
   delegate_to: "{{ groups['watcher-api'][0] }}"
@@ -20,10 +20,10 @@
       login_port: "{{ database_port }}"
       login_user: "{{ database_user }}"
       login_password: "{{ database_password }}"
-      name: "{{ wather_database_name }}"
-      password: "{{ wather_database_password }}"
+      name: "{{ watcher_database_name }}"
+      password: "{{ watcher_database_password }}"
       host: "%"
-      priv: "{{ wather_database_name }}.*:ALL"
+      priv: "{{ watcher_database_name }}.*:ALL"
       append_privs: "yes"
   run_once: True
   delegate_to: "{{ groups['watcher-api'][0] }}"