Use regexp by whole name for murano_application
Sometime we can have murano application packages that match regexp by words. So, better to use regexp for whole package name. Change-Id: I43203b44460bf6542564ed59419f9d5b5c9c5c99
This commit is contained in:
parent
24d769f674
commit
a41c93d69f
@ -15,7 +15,7 @@ Puppet::Type.type(:murano_application).provide(
|
||||
def exists?
|
||||
packages = auth_murano('package-list')
|
||||
return packages.split("\n")[1..-1].detect do |n|
|
||||
n =~ /\b(#{resource[:name]})\b/
|
||||
n =~ /\s(#{resource[:name]})\s/
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user