[go: up one dir, main page]

Skip to content

Commit

Permalink
Lints and undef fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
alvagante committed Oct 19, 2023
1 parent 5d171cb commit 4ff4020
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 10 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# CHANGELOG

## 3.10.1

- Changed CI containers used
- Added unit tests for Puppet 6, 7 and 8
- Lints and fix on undefined vars

## 3.10.0

- Added support for $MAJVERSION variable in tinydata
Expand Down
18 changes: 9 additions & 9 deletions manifests/install.pp
Original file line number Diff line number Diff line change
Expand Up @@ -239,11 +239,11 @@
$extracted_file = getvar('tp_settings.release.extracted_file')

$local_settings = delete_undef_values({
install_method => $real_install_method,
repo => $repo,
upstream_repo => $upstream_repo,
install_method => getvar('real_install_method'),
repo => getvar('repo'),
upstream_repo => getvar('upstream_repo'),
git_source => $real_install_method ? {
'source' => $source,
'source' => getvar('source'),
default => undef,
},
destination => $real_install_method ? {
Expand All @@ -255,11 +255,11 @@
name => tp::title_replace(getvar('settings.packages.main.name'),$app),
}),
release => delete_undef_values({
base_url => pick_default(getvar('real_base_url')),
file_name => $real_filename,
url => $real_url,
extracted_dir => $extracted_dir,
extracted_file => $extracted_file,
base_url => getvar('real_base_url'),
file_name => getvar('real_filename'),
url => getvar('real_url'),
extracted_dir => getvar('extracted_dir'),
extracted_file => getvar('extracted_file'),
setup => delete_undef_values({
enable => getvar('tp_settings.release.setup.enable'),
links => getvar('tp_settings.release.setup.links'),
Expand Down
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "example42-tp",
"version": "3.10.0",
"version": "3.10.1",
"author": "example42",
"summary": "Tiny Puppet",
"license": "Apache-2.0",
Expand Down

0 comments on commit 4ff4020

Please sign in to comment.