MCPcopy Create free account
hub / github.com/saltstack/salt / list_configs

Function list_configs

salt/modules/snapper.py:194–212  ·  view source on GitHub ↗

List all available configs CLI Example: .. code-block:: bash salt '*' snapper.list_configs

()

Source from the content-addressed store, hash-verified

192
193
194def list_configs():
195 """
196 List all available configs
197
198 CLI Example:
199
200 .. code-block:: bash
201
202 salt '*' snapper.list_configs
203 """
204 try:
205 configs = snapper.ListConfigs()
206 return {config[0]: config[2] for config in configs}
207 except dbus.DBusException as exc:
208 raise CommandExecutionError(
209 "Error encountered while listing configurations: {}".format(
210 _dbus_exception_to_reason(exc, locals())
211 )
212 )
213
214
215def _config_filter(value):

Callers 2

statusFunction · 0.85
diffFunction · 0.85

Calls 3

formatMethod · 0.80

Tested by

no test coverage detected