From: Martyn Taylor <mtaylor(a)redhat.com>
---
.../image_factory/aeolus-image/lib/list_command.rb | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/services/image_factory/aeolus-image/lib/list_command.rb
b/services/image_factory/aeolus-image/lib/list_command.rb
index 5f97b2f..46bb2b8 100644
--- a/services/image_factory/aeolus-image/lib/list_command.rb
+++ b/services/image_factory/aeolus-image/lib/list_command.rb
@@ -35,7 +35,14 @@ module Aeolus
end
def accounts
- not_implemented
+ print_values = [["NAME", "PROVIDER", "PROVIDER
TYPE"]]
+ doc = Nokogiri::XML conductor['/provider_accounts/'].get
+ doc.xpath("/provider_accounts/provider_account").each do |account|
+ print_values << [account.xpath("name").text,
account.xpath("provider").text, account.xpath("provider_type").text]
+ end
+
+ format_print(print_values)
+ quit(0)
end
private
--
1.7.4