Skip to content

Commit

Permalink
virt.volume_infos parameters now default to None
Browse files Browse the repository at this point in the history
Since the pool and volume parameters can be None, make them optional and
default to None.
  • Loading branch information
cbosdo committed Dec 6, 2019
1 parent 9b4d152 commit e13e23f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions salt/modules/virt.py
Original file line number Diff line number Diff line change
Expand Up @@ -4983,14 +4983,14 @@ def _get_all_volumes_paths(conn):
for vol in volumes if _is_valid_volume(vol)}


def volume_infos(pool, volume, **kwargs):
def volume_infos(pool=None, volume=None, **kwargs):
'''
Provide details on a storage volume. If no volume name is provided, the infos
all the volumes contained in the pool are provided. If no pool is provided,
the infos of the volumes of all pools are output.
:param pool: libvirt storage pool name
:param volume: name of the volume to get infos from
:param pool: libvirt storage pool name (default: ``None``)
:param volume: name of the volume to get infos from (default: ``None``)
:param connection: libvirt connection URI, overriding defaults
:param username: username to connect with, overriding defaults
:param password: password to connect with, overriding defaults
Expand Down

0 comments on commit e13e23f

Please sign in to comment.