diff --git a/cookbooks/consul/install.rb b/cookbooks/consul/install.rb index 244dcf2..303f5e4 100644 --- a/cookbooks/consul/install.rb +++ b/cookbooks/consul/install.rb @@ -7,7 +7,7 @@ execute "wget -O- #{SRC} | gpg --dearmor -o #{DEST}" do end # Retrieve the Ubuntu code: -DIST = run_command('lsb_release -cs').stdout.chomp +DIST = run_command('lsb_release -cs 2>/dev/null').stdout.chomp # Deploy the `apt` sources: template '/etc/apt/sources.list.d/hashicorp.list' do diff --git a/cookbooks/nomad/install.rb b/cookbooks/nomad/install.rb index 86657b1..ad66f2e 100644 --- a/cookbooks/nomad/install.rb +++ b/cookbooks/nomad/install.rb @@ -7,7 +7,7 @@ execute "wget -O- #{SRC} | gpg --dearmor -o #{DEST}" do end # Retrieve the Ubuntu code: -DIST = run_command('lsb_release -cs').stdout.chomp +DIST = run_command('lsb_release -cs 2>/dev/null').stdout.chomp # Deploy the `apt` sources: template '/etc/apt/sources.list.d/hashicorp.list' do diff --git a/cookbooks/vault/install.rb b/cookbooks/vault/install.rb index ec1e3f7..7210f67 100644 --- a/cookbooks/vault/install.rb +++ b/cookbooks/vault/install.rb @@ -7,7 +7,7 @@ execute "wget -O- #{SRC} | gpg --dearmor -o #{DEST}" do end # Retrieve the Ubuntu code: -DIST = run_command('lsb_release -cs').stdout.chomp +DIST = run_command('lsb_release -cs 2>/dev/null').stdout.chomp # Deploy the `apt` sources: template '/etc/apt/sources.list.d/hashicorp.list' do