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:
Denis Egorenko 2016-06-06 19:15:37 +03:00
parent 24d769f674
commit a41c93d69f

View File

@ -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