yaocloud / yao

Yet Another OpenStack API wrapper
MIT License
35 stars 12 forks source link

Yao::User.find is broken #117

Closed hiboma closed 2 years ago

hiboma commented 5 years ago

Here is a samle code by yrb

yao(main):001:0> Yao::User.find('f34a8a403745488e99ae0b3d8598e611')
Traceback (most recent call last):

        ... snip  

        3: from (irb):1
        2: from /Users/hito/git/yao-yrb/vendor/bundle/ruby/2.6.0/gems/yao-0.7.0/lib/yao/resources/restfully_accessible.rb:93:in `get'
        1: from /Users/hito/git/yao-yrb/vendor/bundle/ruby/2.6.0/gems/yao-0.7.0/lib/yao/resources/user.rb:14:in `get_by_name'
ArgumentError (wrong number of arguments (given 2, expected 1))

Is this problem related to https://github.com/yaocloud/yao/pull/92 ?

hiboma commented 5 years ago

📝 This problem is related to keystone versioning with v2.0/v3, and will be fixed in https://github.com/yaocloud/yao/pull/123.