From 9b1a57f1f3cc85de7877196195969d8a2bee6bef Mon Sep 17 00:00:00 2001 From: Evan Wies Date: Fri, 5 Jul 2013 10:00:01 -0400 Subject: [PATCH] digital_ocean: make sure 'images' includes non-global images The `dopy` library function all_images includes a 'global' filter by default. This was preventing private images from showing up in --images. The problem also made this script fail immediately for people who had droplets previously created with private images. --- plugins/inventory/digital_ocean.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/inventory/digital_ocean.py b/plugins/inventory/digital_ocean.py index 9c2a65a27a0..594a43e04c0 100755 --- a/plugins/inventory/digital_ocean.py +++ b/plugins/inventory/digital_ocean.py @@ -300,7 +300,7 @@ or environment variables (DO_CLIENT_ID and DO_API_KEY)''' self.data = {} self.data['droplets'] = self.sanitize_list( manager.all_active_droplets() ) self.data['regions'] = self.sanitize_list( manager.all_regions() ) - self.data['images'] = self.sanitize_list( manager.all_images() ) + self.data['images'] = self.sanitize_list( manager.all_images(filter=None) ) self.data['sizes'] = self.sanitize_list( manager.sizes() ) self.data['ssh_keys'] = self.sanitize_list( manager.all_ssh_keys() ) self.data['domains'] = self.sanitize_list( manager.all_domains() )