Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

With new Stdlib type Asolutepath empty string is not valid. #40

Merged
merged 1 commit into from
Apr 10, 2017

Conversation

mterzo
Copy link
Contributor

@mterzo mterzo commented Apr 10, 2017

Set the default value to undef for map file, which will allow for
the ability to use already defined system resources like

/net -hosts

Suggestion for #18

@@ -40,7 +40,7 @@
define autofs::mount (
Stdlib::Absolutepath $mount,
Integer $order,
Stdlib::Absolutepath $mapfile = '',
Optional[Stdlib::Absolutepath] $mapfile = undef,
Optional[String] $options = '',
Stdlib::Absolutepath $master = '/etc/auto.master',
Stdlib::Absolutepath $map_dir = '/etc/auto.master.d',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you realign this at the =?

@@ -111,7 +111,7 @@
}
}

if $mapfile != '' {
if $mapfile != undef {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if $mapfile {}

Set the default value to undef for map file, which will allow for
the ability to use already defined system resources like

/net -hosts
@mterzo
Copy link
Contributor Author

mterzo commented Apr 10, 2017

@bastelfreak good points, taken care of.

@bastelfreak bastelfreak merged commit afc70c8 into voxpupuli:master Apr 10, 2017
@bastelfreak bastelfreak added the bug Something isn't working label Apr 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants