Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
puppet-freeradius
Commits
7a43a765
Unverified
Commit
7a43a765
authored
May 14, 2021
by
Nathan Ward
Committed by
GitHub
May 14, 2021
Browse files
Merge pull request #158 from SearchLightNZ/fix_client_attributes
Fix client attributes so that hashes and arrays work correctly
parents
28c34bcb
8176e4bf
Changes
1
Show whitespace changes
Inline
Side-by-side
templates/client.conf.erb
View file @
7a43a765
...
...
@@ -45,13 +45,13 @@ client <%= @shortname %> {
}
<%-
end
-%>
<%-
if
defined?
(
@attributes
)
and
!
@attributes
.
empty?
-%>
<%-
if
defined?
(
@attributes
)
.
respond_to?
(
'join'
)
-%>
<%-
if
@attributes
.
respond_to?
(
'join'
)
-%>
<%=
@attributes
.
join
(
"
\n
"
)
%>
<%-
elsif
defined?
(
@attributes
)
.
is_a?
(
Hash
)
-%>
<%-
elsif
@attributes
.
is_a?
(
Hash
)
-%>
<%-
@attributes
.
sort
.
each
do
|
k
,
v
|
-%>
<%=
k
%>
=
<%=
v
%>
<%-
end
-%>
<%-
els
if
defined?
(
@attributes
)
-%>
<%-
els
e
-%>
<%=
@attributes
%>
<%-
end
-%>
<%-
end
-%>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment