]> review.fuel-infra Code Review - puppet-modules/puppetlabs-apt.git/commitdiff
Undo the id/name duplication; fixed in Resource API
authorDavid Schmitt <david.schmitt@puppet.com>
Mon, 25 Sep 2017 09:17:11 +0000 (10:17 +0100)
committerDavid Schmitt <david.schmitt@puppet.com>
Mon, 25 Sep 2017 12:30:43 +0000 (13:30 +0100)
lib/puppet/type/apt_key2.rb

index ccc69a72e4cb29560df72e7e6bda45b83b28a60d..57ad7f1f4b031de57ff7d4a7fa974142a032a417 100644 (file)
@@ -21,7 +21,7 @@ Puppet::ResourceApi.register_type(
       desc:    'Whether this apt key should be present or absent on the target system.',
       default: 'present',
     },
-    name:          {
+    id:          {
       type:      'Variant[Pattern[/\A(0x)?[0-9a-fA-F]{8}\Z/], Pattern[/\A(0x)?[0-9a-fA-F]{16}\Z/], Pattern[/\A(0x)?[0-9a-fA-F]{40}\Z/]]',
       desc:      'The fingerprint of the key you want to manage.',
       behaviour: :namevar,
@@ -45,11 +45,6 @@ Puppet::ResourceApi.register_type(
       type: 'Optional[String]',
       desc: 'Additional options to pass to apt-key\'s --keyserver-options.',
     },
-    id: {
-      type:      'Pattern[/[a-f]{40}/]',
-      desc:      'The 40-digit hexadecimal fingerprint of the specified GPG key.',
-      behaviour: :read_only,
-    },
     fingerprint: {
       type:      'Pattern[/[a-f]{40}/]',
       desc:      'The 40-digit hexadecimal fingerprint of the specified GPG key.',