Skip to content

Commit a1172b0

Browse files
committed
SSH keys with nil location can't be renamed
* lib/tasks/rename_ssh_keys.rake: Use empty string if location is nil.
1 parent f76d124 commit a1172b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: lib/tasks/rename_ssh_keys.rake

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace :redmine_git_hosting do
1212
repo_key['title'] = ssh_key.identifier
1313
repo_key['key'] = ssh_key.key
1414
repo_key['owner'] = ssh_key.owner
15-
repo_key['location'] = ssh_key.location
15+
repo_key['location'] = (ssh_key.location or "")
1616

1717
puts " - Delete SSH key #{ssh_key.identifier}"
1818
RedmineGitolite::GitHosting.resync_gitolite({ :command => :delete_ssh_key, :object => repo_key })

0 commit comments

Comments
 (0)