Remove spaces from netmaps line

An user can write network mapping line with spaces. Remove that spaces.
Closes-bug: #1589589

Change-Id: I1eb4e3554773ccebe82715a77cdb885f21b3cb0f
This commit is contained in:
Igor Gajsin 2016-06-06 19:37:17 +03:00
parent 5a4195f712
commit f414e4d056
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@
raise(Puppet::ParseError, 'Shoud have 5 arguments!') if args.size < 4 or args[0] == ""
vcenter = args[0]['computes']
physnet = args[1]["predefined_networks"]["admin_internal_net"]["L2"]["physnet"]
netmaps = args[2]["vmware_dvs_net_maps"]
netmaps = args[2]["vmware_dvs_net_maps"].delete(' ')
use_fw_driver = args[2]["vmware_dvs_fw_driver"]
current_node = args[3].split(".")[0]
controllersp = args[4].any? {|role| role.include?("controller")}