From c8c7014fc0c1c9056621e81ffbc6dbea61d64fd7 Mon Sep 17 00:00:00 2001 From: Josh Durgin Date: Thu, 13 Sep 2012 14:29:43 -0700 Subject: [PATCH] rbd: fix typo and cast to int before comparing format --- teuthology/task/rbd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teuthology/task/rbd.py b/teuthology/task/rbd.py index 56b8519624..b12c430206 100644 --- a/teuthology/task/rbd.py +++ b/teuthology/task/rbd.py @@ -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: -- 2.39.5