changes required to support purging
In order for the ini file type to support purging, the file path must be accessible on the class instance. This patch was made to test some new functionality being added to the inifile type https://github.com/cprice-puppet/puppetlabs-inifile/pull/25 It does effect backwards compat of this native type so its ok to go ahead and merge.
This commit is contained in:
parent
f7ac383869
commit
7cbd4bbf8c
|
@ -15,8 +15,13 @@ Puppet::Type.type(:glance_api_config).provide(
|
|||
'='
|
||||
end
|
||||
|
||||
def file_path
|
||||
def self.file_path
|
||||
'/etc/glance/glance-api.conf'
|
||||
end
|
||||
|
||||
# this needs to be removed. This has been replaced with the class method
|
||||
def file_path
|
||||
self.class.file_path
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
@ -15,8 +15,13 @@ Puppet::Type.type(:glance_api_paste_ini).provide(
|
|||
'='
|
||||
end
|
||||
|
||||
def file_path
|
||||
def self.file_path
|
||||
'/etc/glance/glance-api-paste.ini'
|
||||
end
|
||||
|
||||
# added for backwards compatibility with older versions of inifile
|
||||
def file_path
|
||||
self.class.file_path
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
@ -15,8 +15,13 @@ Puppet::Type.type(:glance_cache_config).provide(
|
|||
'='
|
||||
end
|
||||
|
||||
def file_path
|
||||
def self.file_path
|
||||
'/etc/glance/glance-cache.conf'
|
||||
end
|
||||
|
||||
# added for backwards compatibility with older versions of inifile
|
||||
def file_path
|
||||
self.class.file_path
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
@ -15,8 +15,13 @@ Puppet::Type.type(:glance_registry_config).provide(
|
|||
'='
|
||||
end
|
||||
|
||||
def file_path
|
||||
def self.file_path
|
||||
'/etc/glance/glance-registry.conf'
|
||||
end
|
||||
|
||||
# added for backwards compatibility with older versions of inifile
|
||||
def file_path
|
||||
self.class.file_path
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
@ -15,8 +15,13 @@ Puppet::Type.type(:glance_registry_paste_ini).provide(
|
|||
'='
|
||||
end
|
||||
|
||||
def file_path
|
||||
def self.file_path
|
||||
'/etc/glance/glance-registry-paste.ini'
|
||||
end
|
||||
|
||||
# added for backwards compatibility with older versions of inifile
|
||||
def file_path
|
||||
self.class.file_path
|
||||
end
|
||||
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue