From ffbd3515690d013eefdd43ad7985acdb22ff2d27 Mon Sep 17 00:00:00 2001 From: zhangyangyang Date: Fri, 6 Oct 2017 13:53:17 +0800 Subject: [PATCH] Remove useless method file_path This needs to be removed. This has been replaced with the class method. Change-Id: I6f3e79b1ba5a3f7a4f320495f8df9f053bfd78f9 --- lib/puppet/provider/libvirtd_config/ini_setting.rb | 5 ----- lib/puppet/provider/nova_paste_api_ini/ini_setting.rb | 5 ----- .../notes/remove_useless_method-6ad1b132053f7da9.yaml | 4 ++++ 3 files changed, 4 insertions(+), 10 deletions(-) create mode 100644 releasenotes/notes/remove_useless_method-6ad1b132053f7da9.yaml diff --git a/lib/puppet/provider/libvirtd_config/ini_setting.rb b/lib/puppet/provider/libvirtd_config/ini_setting.rb index 9120e0f3b..0ba58a3ea 100644 --- a/lib/puppet/provider/libvirtd_config/ini_setting.rb +++ b/lib/puppet/provider/libvirtd_config/ini_setting.rb @@ -19,9 +19,4 @@ Puppet::Type.type(:libvirtd_config).provide( '/etc/libvirt/libvirtd.conf' end - # this needs to be removed. This has been replaced with the class method - def file_path - self.class.file_path - end - end diff --git a/lib/puppet/provider/nova_paste_api_ini/ini_setting.rb b/lib/puppet/provider/nova_paste_api_ini/ini_setting.rb index 339d32af0..fb5c99671 100644 --- a/lib/puppet/provider/nova_paste_api_ini/ini_setting.rb +++ b/lib/puppet/provider/nova_paste_api_ini/ini_setting.rb @@ -19,9 +19,4 @@ Puppet::Type.type(:nova_paste_api_ini).provide( '/etc/nova/api-paste.ini' end - # this needs to be removed. This has been replaced with the class method - def file_path - self.class.file_path - end - end diff --git a/releasenotes/notes/remove_useless_method-6ad1b132053f7da9.yaml b/releasenotes/notes/remove_useless_method-6ad1b132053f7da9.yaml new file mode 100644 index 000000000..fd9a1ac91 --- /dev/null +++ b/releasenotes/notes/remove_useless_method-6ad1b132053f7da9.yaml @@ -0,0 +1,4 @@ +--- +upgrade: + - Remove useless method file_path + This needs to be removed. This has been replaced with the class method.