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

New function giving syntax error in 2.0x ruby #65

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/fog/ovirt/compute/v4.rb
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,8 @@ def blank_template
@blank_template ||= client.system_service.get.special_objects.blank_template
end

def create_search_by_datacenter(search:, datacenter:, page: nil)
def create_search_by_datacenter(search: nil, datacenter: nil, page: nil)
mariohmol marked this conversation as resolved.
Show resolved Hide resolved
unless datacenter raise ::Fog::Ovirt::Errors::OvirtEngineError('Cannot create search request by datacenter, when datacenter is nil`)
mariohmol marked this conversation as resolved.
Show resolved Hide resolved
search ||= ""
search += " datacenter=#{datacenter}" if datacenter
mariohmol marked this conversation as resolved.
Show resolved Hide resolved
search += " page #{page}" if page
Expand Down