From e384801c586eacb08cfee49974ba3a8bd36b074b Mon Sep 17 00:00:00 2001 From: Ryan Date: Fri, 3 Jan 2025 13:06:58 +0800 Subject: [PATCH] Allow Sensitive type for password in cli.toml Fixes GH-365 --- manifests/cli.pp | 2 +- templates/cli-config.toml.epp | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/manifests/cli.pp b/manifests/cli.pp index 5ff35667..4da4c0ab 100644 --- a/manifests/cli.pp +++ b/manifests/cli.pp @@ -31,7 +31,7 @@ Optional[Stdlib::HTTPUrl] $pulpcore_url = undef, String $version = 'installed', Optional[String] $username = undef, - Optional[String] $password = undef, + Optional[Variant[Sensitive[String], String]] $password = undef, Optional[String] $cert = undef, Optional[String] $key = undef, Optional[String] $api_root = undef, diff --git a/templates/cli-config.toml.epp b/templates/cli-config.toml.epp index d81b69ed..a2e418fd 100644 --- a/templates/cli-config.toml.epp +++ b/templates/cli-config.toml.epp @@ -1,12 +1,12 @@ <%- | - Optional[Stdlib::HTTPUrl] $base_url = undef, - Optional[String] $username = undef, - Optional[String] $password = undef, - Optional[String] $cert = undef, - Optional[String] $key = undef, - Optional[String] $api_root = undef, - Optional[Boolean] $verify_ssl = undef, - Optional[Boolean] $dry_run = undef, + Optional[Stdlib::HTTPUrl] $base_url = undef, + Optional[String] $username = undef, + Optional[Variant[Sensitive[String], String]] $password = undef, + Optional[String] $cert = undef, + Optional[String] $key = undef, + Optional[String] $api_root = undef, + Optional[Boolean] $verify_ssl = undef, + Optional[Boolean] $dry_run = undef, | -%> [cli] <% if $base_url { -%>