Enable an installed plugin. Args: name (string): The name of the plugin. The ``:latest`` tag is optional, and is the default if omitted. timeout (int): Operation timeout (in seconds). Default: 0 Returns:
(self, name, timeout=0)
| 70 | |
| 71 | @utils.minimum_version('1.25') |
| 72 | def enable_plugin(self, name, timeout=0): |
| 73 | """ |
| 74 | Enable an installed plugin. |
| 75 | |
| 76 | Args: |
| 77 | name (string): The name of the plugin. The ``:latest`` tag is |
| 78 | optional, and is the default if omitted. |
| 79 | timeout (int): Operation timeout (in seconds). Default: 0 |
| 80 | |
| 81 | Returns: |
| 82 | ``True`` if successful |
| 83 | """ |
| 84 | url = self._url('/plugins/{0}/enable', name) |
| 85 | params = {'timeout': timeout} |
| 86 | res = self._post(url, params=params) |
| 87 | self._raise_for_status(res) |
| 88 | return True |
| 89 | |
| 90 | @utils.minimum_version('1.25') |
| 91 | def inspect_plugin(self, name): |