diff --git a/lib/fog/openstack/auth/token.rb b/lib/fog/openstack/auth/token.rb index d8e2cec7..0c33798d 100644 --- a/lib/fog/openstack/auth/token.rb +++ b/lib/fog/openstack/auth/token.rb @@ -14,7 +14,7 @@ class StandardError < RuntimeError; end class URLError < RuntimeError; end def self.build(auth, options) - if auth[:openstack_identity_api_version] =~ /(v)*2(\.0)*/i || + if auth[:openstack_identity_api_version].to_s =~ /(v)*2(\.0)*/i || auth[:openstack_tenant_id] || auth[:openstack_tenant] Fog::OpenStack::Auth::Token::V2.new(auth, options) else