diff --git a/manifests/versionlock.pp b/manifests/versionlock.pp index ecff9c53..9e11419f 100644 --- a/manifests/versionlock.pp +++ b/manifests/versionlock.pp @@ -57,7 +57,7 @@ Enum['present', 'absent', 'exclude'] $ensure = 'present', Optional[Yum::RpmVersion] $version = undef, Yum::RpmRelease $release = '*', - Variant[Yum::RpmEpoch, Enum['*']] $epoch = 0, + Integer[0] $epoch = 0, Optional[Variant[Yum::RpmArch, Enum['*']]] $arch = undef, ) { require yum::plugin::versionlock diff --git a/spec/type_aliases/yum_rpmepoch_spec.rb b/spec/type_aliases/yum_rpmepoch_spec.rb deleted file mode 100644 index f8ff35bc..00000000 --- a/spec/type_aliases/yum_rpmepoch_spec.rb +++ /dev/null @@ -1,10 +0,0 @@ -require 'spec_helper' - -describe 'Yum::Rpmepoch' do - it { is_expected.to allow_value(0) } - it { is_expected.to allow_value(10) } - it { is_expected.not_to allow_values('0') } - it { is_expected.not_to allow_values('b') } - it { is_expected.not_to allow_values('*') } - it { is_expected.not_to allow_values('-') } -end diff --git a/types/rpmepoch.pp b/types/rpmepoch.pp deleted file mode 100644 index 3d125c39..00000000 --- a/types/rpmepoch.pp +++ /dev/null @@ -1,4 +0,0 @@ -# @summary Valid epoch of rpm. -# It is always an integer greater than 0. -# Output of `rpm -q --queryformat '%{epoch}\n' package` -type Yum::RpmEpoch = Integer[0]