Correct handling args.backup in do_create

We have to use args.backup, not self.backup.

Change-Id: I1f3c892cd4e9c1a42586bdd34d5239cb90c9af74
This commit is contained in:
Arata Notsu
2013-10-10 15:11:03 +09:00
parent 06e7ba4586
commit fa48a8dcd4

View File

@@ -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]]