mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Update dnsmasq.get_config docs to use correct config_file param. (#34488)
Fixes #34261
This commit is contained in:
parent
e2f576e847
commit
0f3f87fbc5
1 changed files with 5 additions and 1 deletions
|
@ -118,12 +118,16 @@ def get_config(config_file='/etc/dnsmasq.conf'):
|
|||
'''
|
||||
Dumps all options from the config file.
|
||||
|
||||
config_file
|
||||
The location of the config file from which to obtain contents.
|
||||
Defaults to ``/etc/dnsmasq.conf``.
|
||||
|
||||
CLI Examples:
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
salt '*' dnsmasq.get_config
|
||||
salt '*' dnsmasq.get_config file=/etc/dnsmasq.conf
|
||||
salt '*' dnsmasq.get_config config_file=/etc/dnsmasq.conf
|
||||
'''
|
||||
dnsopts = _parse_dnamasq(config_file)
|
||||
if 'conf-dir' in dnsopts:
|
||||
|
|
Loading…
Add table
Reference in a new issue