yaocloud / yao

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

Yao::RoleAssignmentクラスのメソッドを実行するとkeystone関連のクラスが壊れる #178

Closed buty4649 closed 2 years ago

buty4649 commented 2 years ago

再現手順

[1] yao(main)> Yao::RoleAssignment.list
=> [#<Yao::Resources::RoleAssignment:0x000055618427d630
  @data=
-- snip --
[2] yao(main)> Yao::Project.list
Yao::NotFound: The resource could not be found.
from /home/ykky/.asdf/installs/ruby/3.0.3/lib/ruby/gems/3.0.0/gems/yao-0.14.0/lib/yao/faraday_middlewares.rb:176:in `on_complete'

通常時

[1] yao(main)> Yao::Project.list.count
=> 26
buty4649 commented 2 years ago

https://github.com/yaocloud/yao/blob/e0caa517273a92e90cb64b9e33d335f51c83537a/lib/yao/resources/role_assignment.rb#L9 でYao.clientのurlを書き換えているのでこれが原因で壊れていそう。