Skip to content

Commit

Permalink
Add deep_copy calls missing because of a Y2R bug
Browse files Browse the repository at this point in the history
  • Loading branch information
dmajda committed Oct 18, 2013
1 parent 6e78b05 commit e0a92ff
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/clients/ldap_browser.rb
Expand Up @@ -203,7 +203,7 @@ def main
)
) do |c|
@i = Ops.add(@i, 1)
@i == @conf ? @configuration : c
@i == @conf ? deep_copy(@configuration) : deep_copy(c)
end
end
end
Expand Down
4 changes: 3 additions & 1 deletion src/modules/Ldap.rb
Expand Up @@ -3236,7 +3236,9 @@ def Write(abort)
def WriteNow
abort = lambda { false }

needed_packages = @sssd ? @sssd_packages : @pam_nss_packages
needed_packages = @sssd ?
deep_copy(@sssd_packages) :
deep_copy(@pam_nss_packages)
if @sssd_with_krb
needed_packages = Convert.convert(
Builtins.union(needed_packages, @kerberos_packages),
Expand Down
2 changes: 1 addition & 1 deletion src/modules/LdapPopup.rb
Expand Up @@ -222,7 +222,7 @@ def BrowseTree(root_dn)
def InitAndBrowseTree(root_dn, connection)
connection = deep_copy(connection)
args = Ops.greater_than(Builtins.size(connection), 0) ?
connection :
deep_copy(connection) :
{
"hostname" => Ldap.GetFirstServer(Ldap.server),
"port" => Ldap.GetFirstPort(Ldap.server),
Expand Down

0 comments on commit e0a92ff

Please sign in to comment.