X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=3rdparty%2Fmodules%2Faviator%2Ffeature%2Faviator%2Fopenstack%2Fcompute%2Fv2%2Fadmin%2Flist_hosts.rb;fp=3rdparty%2Fmodules%2Faviator%2Ffeature%2Faviator%2Fopenstack%2Fcompute%2Fv2%2Fadmin%2Flist_hosts.rb;h=0000000000000000000000000000000000000000;hb=6e1426dc77fb4e5d51f07c187c6f2219431dc31e;hp=8c47aa83592ec135d21f722aaacb0fa4d68edada;hpb=87423ba664cd5f2bb462ebadd08b1a90d0fe1c8d;p=mirror%2Fdsa-puppet.git diff --git a/3rdparty/modules/aviator/feature/aviator/openstack/compute/v2/admin/list_hosts.rb b/3rdparty/modules/aviator/feature/aviator/openstack/compute/v2/admin/list_hosts.rb deleted file mode 100644 index 8c47aa835..000000000 --- a/3rdparty/modules/aviator/feature/aviator/openstack/compute/v2/admin/list_hosts.rb +++ /dev/null @@ -1,44 +0,0 @@ -module Aviator - - define_request :list_hosts, :inherit => [:openstack, :common, :v2, :admin, :base] do - - meta :service, :compute - - link 'documentation', - 'http://api.openstack.org/api-ref.html#ext-os-hosts' - - link 'documentation bug', - 'https://bugs.launchpad.net/nova/+bug/1224763' - - param :service, :required => false - param :zone, :required => false - - - def headers - super - end - - - def http_method - :get - end - - - def url - url = "#{ base_url }/os-hosts" - - filters = [] - - optional_params.each do |param_name| - filters << "#{ param_name }=#{ params[param_name] }" if params[param_name] - end - - url += "?#{ filters.join('&') }" unless filters.empty? - - url - end - - end - -end -