Merge "add check to empty value of a dvSwitch name"

This commit is contained in:
Jenkins 2015-08-07 16:35:42 +00:00 committed by Gerrit Code Review
commit f987148646
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ module Puppet::Parser::Functions
Construct properly network_maps string
EOS
) do |args|
raise(Puppet::ParseError, 'No name of dvSwitch provided!') if args.size < 1
raise(Puppet::ParseError, 'No name of dvSwitch provided!') if args.size < 1 or args[0] == ""
maps = args[0]
physnet = args[1]
if maps.include? ':'