Fix errors in puppet-syntax-future

puppet-syntax-future job is failing because of a syntax error in the
manifests.
This patch aims to fix it.

Change-Id: Ib471e862bb7a9f735c5c6f045f4c627723dd6c3a
(cherry picked from commit 5e07f511b4)
(cherry picked from commit 736587a878)
This commit is contained in:
Emilien Macchi
2015-04-25 13:39:14 -04:00
committed by Cédric LECOMTE
parent 5f6fa04b1d
commit dad82f5577
5 changed files with 5 additions and 5 deletions

View File

@@ -417,7 +417,7 @@ class cloud::database::sql::mysql (
}
} # Debian
default: {
err "${::osfamily} not supported yet"
fail("${::osfamily} not supported yet")
}
}

View File

@@ -89,7 +89,7 @@ class cloud::network(
$core_plugin = 'neutron.plugins.cisco.network_plugin.PluginV2'
}
default: {
err "${plugin} plugin is not supported."
fail("${plugin} plugin is not supported.")
}
}

View File

@@ -254,7 +254,7 @@ class cloud::network::controller(
}
default: {
err "${plugin} plugin is not supported."
fail("${plugin} plugin is not supported.")
}
}

View File

@@ -215,7 +215,7 @@ class cloud::network::vswitch(
}
default: {
err "${driver} driver is not supported."
fail("${driver} driver is not supported.")
}
}

View File

@@ -133,7 +133,7 @@ describe 'cloud::network::vswitch' do
before :each do
params.merge!(:driver => 'Something')
end
it { should compile.and_raise_error(/Something plugin is not supported./) }
it_raises 'a Puppet::Error', /Something driver is not supported./
end
context 'with default firewall enabled' do