Skip to content

Commit

Permalink
Merge c42d22d into 6f9e2ff
Browse files Browse the repository at this point in the history
  • Loading branch information
contargo-development committed Jan 5, 2017
2 parents 6f9e2ff + c42d22d commit 24f868b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions manifests/plugin/python/module.pp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
$config = [],
$ensure = 'present',
$module = $title,
$module_import = undef,
$modulepath = undef,
$script_source = undef,
) {
Expand All @@ -18,6 +19,11 @@
}
validate_absolute_path($module_dir)

$_module_import = $module_import ? {
undef => $module,
default => $module_import
}

if $script_source {
file { "${module}.script":
ensure => $ensure,
Expand Down
2 changes: 1 addition & 1 deletion templates/plugin/python/module.conf.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<%- require 'shellwords' -%>
Import "<%= @module %>"
Import "<%= @_module_import %>"

<%- @config.each do |configuration| -%>

Expand Down

0 comments on commit 24f868b

Please sign in to comment.