From fa48a8dcd46b5fd53d0907c7113d4620dcaa269f Mon Sep 17 00:00:00 2001 From: Arata Notsu Date: Thu, 10 Oct 2013 15:11:03 +0900 Subject: [PATCH] Correct handling args.backup in do_create We have to use args.backup, not self.backup. Change-Id: I1f3c892cd4e9c1a42586bdd34d5239cb90c9af74 --- troveclient/v1/shell.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/troveclient/v1/shell.py b/troveclient/v1/shell.py index b8ce02de..8c7977ca 100644 --- a/troveclient/v1/shell.py +++ b/troveclient/v1/shell.py @@ -148,7 +148,7 @@ def do_create(cs, args): volume = {"size": args.size} restore_point = None if args.backup: - restore_point = {"backupRef": self.backup} + restore_point = {"backupRef": args.backup} databases = [{'name': value} for value in args.databases] users = [{'name': n, 'password': p} for (n, p) in [z.split(':')[:2] for z in args.users]]