]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd: fix parsing of group and image specific pools 11632/head
authorVictor Denisov <denisovenator@gmail.com>
Mon, 24 Oct 2016 23:50:19 +0000 (16:50 -0700)
committerVictor Denisov <denisovenator@gmail.com>
Mon, 24 Oct 2016 23:50:19 +0000 (16:50 -0700)
Signed-off-by: Victor Denisov <denisovenator@gmail.com>
src/tools/rbd/Utils.cc

index 16de4666f0e7bc90f21a4f918bf52c94bea76ede..4fd0ca79323ff1cc9e0267f26007effb3dc2be27 100644 (file)
@@ -210,7 +210,7 @@ int get_special_pool_group_names(const po::variables_map &vm,
     }
   }
 
-  if (group_pool_name->empty()) {
+  if (group_pool_name->empty() && vm.count(pool_key)) {
     *group_pool_name = vm[pool_key].as<std::string>();
   }
 
@@ -259,7 +259,7 @@ int get_special_pool_image_names(const po::variables_map &vm,
     }
   }
 
-  if (image_pool_name->empty()) {
+  if (image_pool_name->empty() && vm.count(pool_key)) {
     *image_pool_name = vm[pool_key].as<std::string>();
   }