def sync_tunables(self, vault_client):
        """Synchtonizes any tunables we have set"""
        if not self.config:
            return

        a_prefix = self.tune_prefix
        if self.tune_prefix:
            a_prefix = "%s/" % self.tune_prefix

        v_path = "sys/mounts/%s%s/tune" % (a_prefix, self.path)
        a_obj = self.config.copy()
        if 'description' in a_obj:
            del a_obj['description']

        t_resp = vault_client.write(v_path, **a_obj)
        if t_resp and 'errors' in t_resp and t_resp['errors']:
            e_msg = "Unable to update tuning info for %s" % self
            raise aomi_excep.VaultData(e_msg)
def sync_tunables ( self , vault_client ) : if not self . config : return a_prefix = self . tune_prefix if self . tune_prefix : a_prefix = "%s/" % self . tune_prefix v_path = "sys/mounts/%s%s/tune" % ( a_prefix , self . path ) a_obj = self . config . copy ( ) if 'description' in a_obj : del a_obj [ 'description' ] t_resp = vault_client . write ( v_path , ** a_obj ) if t_resp and 'errors' in t_resp and t_resp [ 'errors' ] : e_msg = "Unable to update tuning info for %s" % self raise aomi_excep . VaultData ( e_msg )
Synchtonizes any tunables we have set