Swap Facter[].value with Facter.value()

This commit swaps out the usage of Facter['operatingsystem'].value
  with Facter.value(:operatingsystem) in all neutron providers that
  use the array method on a ruby module style syntax.

  This commit doesn't actually fix anything that is broken just
  implements a specific syntax to keep consistency across Puppet
  OpenStack modules.

  https://review.openstack.org/#/c/243849
  https://review.openstack.org/#/c/243854

Change-Id: I623f92a5071c4e61a614319ece08b9495d83ff59
This commit is contained in:
Cody Herriges
2015-11-10 14:31:23 -08:00
parent 90a9898833
commit dff00fb54a
2 changed files with 2 additions and 2 deletions

View File

@@ -4,7 +4,7 @@ Puppet::Type.type(:neutron_agent_linuxbridge).provide(
) do
def file_path
if Facter['operatingsystem'].value == 'Ubuntu'
if Facter.value(:operatingsystem) == 'Ubuntu'
'/etc/neutron/plugins/ml2/ml2_conf.ini'
else
'/etc/neutron/plugins/linuxbridge/linuxbridge_conf.ini'

View File

@@ -4,7 +4,7 @@ Puppet::Type.type(:neutron_agent_ovs).provide(
) do
def file_path
if Facter['operatingsystem'].value == 'Ubuntu'
if Facter.value(:operatingsystem) == 'Ubuntu'
'/etc/neutron/plugins/ml2/ml2_conf.ini'
else
'/etc/neutron/plugins/ml2/openvswitch_agent.ini'