Skip to content

Commit a21623f

Browse files
committed
remove old parameter hostname
1 parent f15ae38 commit a21623f

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ Role Variables
104104
`libvirt_volume_default_type`.
105105
- `capacity`: volume capacity, can be suffixed with k, M, G, T, P or E when type is `network` or MB,GB,TB, etc when type is `disk` (required when type is `disk` or `network`)
106106
- `auth`: Authentication details should they be required. If auth is required, `username`, `type`, and `uuid` or `usage` will need to be supplied. `uuid` and `usage` should not be both supplied.
107-
- `source`: Where the remote volume comes from when type is `network`. `protocol`, `name`, and `hostname` or `hosts_list` should be supplied. `hostname` and `hosts_list` should not be both supplied. `port` is optional.
107+
- `source`: Where the remote volume comes from when type is `network`. `protocol`, `name` and `hosts_list` should be supplied. `port` is optional.
108108
- `format`: Format of the volume. All options for
109109
`libvirt_volume_default_format` are valid here. Default is
110110
`libvirt_volume_default_format`.

templates/vm.xml.j2

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,9 @@
4848
{% endif %} {# End volume.auth.username check #}
4949
{% if volume.source.name is defined %}
5050
<source protocol='{{ volume.source.protocol }}' name='{{ volume.source.name }}'>
51-
{% if volume.source.hosts_list is defined and volume.source.hosts_list is not none %}
5251
{% for host in volume.source.hosts_list %}
5352
<host name='{{ host }}' {% if volume.source.port is defined and volume.source.port is not none %} port='{{ volume.source.port }}' {% endif %}/>
54-
{% endfor %}
55-
{% else %}
56-
<host name='{{ volume.source.hostname }}' {% if volume.source.port is defined and volume.source.port is not none %} port='{{ volume.source.port }}' {% endif %}/>
57-
{% endif %}
53+
{% endfor %}
5854
</source>
5955
{% endif %} {# End volume.source.name check #}
6056
{% else %} {# End elif volume.type is defined #}

0 commit comments

Comments
 (0)