small fixes/improvements arounds ct_templates.
This commit is contained in:
parent
553197800f
commit
b72da462fe
2 changed files with 3 additions and 3 deletions
|
@ -101,7 +101,7 @@ module PVE::CTTemplate
|
||||||
|
|
||||||
class Datacenter < Base
|
class Datacenter < Base
|
||||||
def self.help
|
def self.help
|
||||||
<<-EOF.gsub /^ {6}/, ''
|
<<~EOF
|
||||||
Datacenter provides an interface for special network-settings.
|
Datacenter provides an interface for special network-settings.
|
||||||
Networks in Datacenters are often based on this behaviour:
|
Networks in Datacenters are often based on this behaviour:
|
||||||
A Network has an ID like 99.
|
A Network has an ID like 99.
|
||||||
|
@ -180,7 +180,7 @@ module PVE::CTTemplate
|
||||||
end
|
end
|
||||||
|
|
||||||
def vmid
|
def vmid
|
||||||
super || ((0...100).map {|i| "#{100*network_id+i}" } - @virts.map( &:vmid)).first
|
super || ((0...100).map {|i| "#{100*network_id+i}".to_i } - @virts.map( &:vmid)).first
|
||||||
end
|
end
|
||||||
|
|
||||||
def network
|
def network
|
|
@ -4,7 +4,7 @@ require_relative 'exceptions'
|
||||||
require_relative 'qemu'
|
require_relative 'qemu'
|
||||||
require_relative 'task'
|
require_relative 'task'
|
||||||
require_relative 'ha'
|
require_relative 'ha'
|
||||||
require_relative '../../template'
|
require_relative '../ct_templates'
|
||||||
|
|
||||||
class Proxmox::LXC < Proxmox::Hosted
|
class Proxmox::LXC < Proxmox::Hosted
|
||||||
class <<self
|
class <<self
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue