]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
rbd: fix typo and cast to int before comparing format
authorJosh Durgin <josh.durgin@inktank.com>
Thu, 13 Sep 2012 21:29:43 +0000 (14:29 -0700)
committerJosh Durgin <josh.durgin@inktank.com>
Thu, 13 Sep 2012 21:29:43 +0000 (14:29 -0700)
teuthology/task/rbd.py

index 56b851962440eb3f5d79f5851410cc90789dbc3a..b12c43020646fec67be8a3d1f484d269766bee3f 100644 (file)
@@ -65,7 +65,7 @@ def create_image(ctx, config):
             ]
         # omit format option if using the default (format 1)
         # since old versions of don't support it
-        if format != 1:
+        if int(fmt) != 1:
             args += ['--format', str(fmt)]
         remote.run(args=args)
     try: