Closed td512 closed 7 years ago
Hey all,
In libvirt/models/compute/templates/server.xml.erb there is an error on line 49 that's causing the port to default to -1
libvirt/models/compute/templates/server.xml.erb
-1
Here's the fix:
<% if display[:port] and !(display[:port].empty?) %>port='<%= display[:port] %>' autoport='no' <% else %>port='-1' autoport='yes' <%end%> instead of port='<%= display[:port] %>' autoport='yes'
<% if display[:port] and !(display[:port].empty?) %>port='<%= display[:port] %>' autoport='no' <% else %>port='-1' autoport='yes' <%end%>
port='<%= display[:port] %>' autoport='yes'
I've already tested it on my local cluster, and that stops the port defaulting to -1
@td512 Could you open a PR with those changes?
Thanks!
All done @plribeiro3000
Awesome. Thanks @td512 . =)
Hey all,
In
libvirt/models/compute/templates/server.xml.erb
there is an error on line 49 that's causing the port to default to-1
Here's the fix:
<% if display[:port] and !(display[:port].empty?) %>port='<%= display[:port] %>' autoport='no' <% else %>port='-1' autoport='yes' <%end%>
instead ofport='<%= display[:port] %>' autoport='yes'
I've already tested it on my local cluster, and that stops the port defaulting to -1