]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
pybind: update python callers of force flags
authorJohn Spray <john.spray@redhat.com>
Thu, 1 Nov 2018 11:58:55 +0000 (07:58 -0400)
committerJohn Spray <john.spray@redhat.com>
Fri, 2 Nov 2018 10:57:43 +0000 (06:57 -0400)
Signed-off-by: John Spray <john.spray@redhat.com>
src/pybind/ceph_volume_client.py
src/pybind/mgr/dashboard/controllers/osd.py
src/pybind/mgr/dashboard/controllers/pool.py
src/pybind/mgr/restful/api/pool.py

index 53675b066c9028b4ac865cba95131aeb934348ff..5f79fdf2c280c66d18afb42fcbe489f35eff57dd 100644 (file)
@@ -755,7 +755,7 @@ class CephFSVolumeClient(object):
                                 {
                                     "pool": pool_name,
                                     "pool2": pool_name,
-                                    "sure": "--yes-i-really-really-mean-it"
+                                    "yes_i_really_really_mean_it": True
                                 })
 
     def _get_ancestor_xattr(self, path, attr):
index 9dd63b261ca57a9fe0ea108668b4d6cafb9673ab..b432e1fd039bf1e2d19a5fb8ec45f238d53a38ba 100644 (file)
@@ -124,7 +124,7 @@ class Osd(RESTController):
             'mon',
             'osd lost',
             id=int(svc_id),
-            sure='--yes-i-really-mean-it')
+            yes_i_really_mean_it=True)
 
     def create(self, uuid=None, svc_id=None):
         """
@@ -157,7 +157,7 @@ class Osd(RESTController):
         The osd must be marked down before being destroyed.
         """
         CephService.send_command(
-            'mon', 'osd destroy-actual', id=int(svc_id), sure='--yes-i-really-mean-it')
+            'mon', 'osd destroy-actual', id=int(svc_id), yes_i_really_mean_it=True)
 
     @RESTController.Resource('GET')
     def safe_to_destroy(self, svc_id):
index bf27e1b36f27c9ced2b0b88130d42f4c5ea7496f..7f0254c6d814240e83d2f7ec6c80a67d360840af 100644 (file)
@@ -74,7 +74,7 @@ class Pool(RESTController):
     @handle_send_command_error('pool')
     def delete(self, pool_name):
         return CephService.send_command('mon', 'osd pool delete', pool=pool_name, pool2=pool_name,
-                                        sure='--yes-i-really-really-mean-it')
+                                        yes_i_really_really_mean_it=True)
 
     @pool_task('edit', ['{pool_name}'])
     def set(self, pool_name, flags=None, application_metadata=None, **kwargs):
@@ -101,7 +101,7 @@ class Pool(RESTController):
         if application_metadata is not None:
             def set_app(what, app):
                 CephService.send_command('mon', 'osd pool application ' + what, pool=pool, app=app,
-                                         force='--yes-i-really-mean-it')
+                                         yes_i_really_mean_it=True)
             if update_existing:
                 original_app_metadata = set(
                     current_pool.get('application_metadata'))
index abf3e98133a69a2b5631509cc0790efe78be1c03..b7a771810d573a6f0fd73f868f13e3802fed7136 100644 (file)
@@ -72,7 +72,7 @@ class PoolId(RestController):
             'prefix': 'osd pool delete',
             'pool': pool['pool_name'],
             'pool2': pool['pool_name'],
-            'sure': '--yes-i-really-really-mean-it'
+            'yes_i_really_really_mean_it': True
         }]], **kwargs)