Return keyring for the given client. :param client_id: str :return keyring: str
(self, client_id)
| 1722 | return self.run_cluster_cmd(**kwargs).exitstatus |
| 1723 | |
| 1724 | def get_keyring(self, client_id): |
| 1725 | """ |
| 1726 | Return keyring for the given client. |
| 1727 | |
| 1728 | :param client_id: str |
| 1729 | :return keyring: str |
| 1730 | """ |
| 1731 | if client_id.find('client.') != -1: |
| 1732 | client_id = client_id.replace('client.', '') |
| 1733 | |
| 1734 | keyring = self.run_cluster_cmd(args=f'auth get client.{client_id}', |
| 1735 | stdout=StringIO()).stdout.getvalue() |
| 1736 | |
| 1737 | assert isinstance(keyring, str) and keyring != '' |
| 1738 | return keyring |
| 1739 | |
| 1740 | def run_ceph_w(self, watch_channel=None): |
| 1741 | """ |