Repository: libcloud Updated Branches: refs/heads/trunk 2846da70f -> 26a54f158
Fix gce_demo for loadbalancing and Python 3 The firewall for loadbalancing needs to have "target tags" set instead of "source tags" and the print statement fails on Python 3. Closes #776 Signed-off-by: Eric Johnson <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/26a54f15 Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/26a54f15 Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/26a54f15 Branch: refs/heads/trunk Commit: 26a54f158392e07e75fb1fd9a808db635ee35e2c Parents: 2846da7 Author: Rick Wright <[email protected]> Authored: Mon Apr 25 10:24:25 2016 -0700 Committer: Eric Johnson <[email protected]> Committed: Tue Apr 26 13:52:44 2016 +0000 ---------------------------------------------------------------------- demos/gce_demo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/libcloud/blob/26a54f15/demos/gce_demo.py ---------------------------------------------------------------------- diff --git a/demos/gce_demo.py b/demos/gce_demo.py index aae7093..03201d9 100755 --- a/demos/gce_demo.py +++ b/demos/gce_demo.py @@ -553,7 +553,7 @@ def main_load_balancer(): name = '%s-firewall' % DEMO_BASE_NAME allowed = [{'IPProtocol': 'tcp', 'ports': ['80']}] - firewall = gce.ex_create_firewall(name, allowed, source_tags=[tag]) + firewall = gce.ex_create_firewall(name, allowed, target_tags=[tag]) display(' Firewall %s created' % firewall.name) # == Create a Health Check == @@ -634,7 +634,7 @@ def main_load_balancer(): sys.stdout.flush() time.sleep(.25) - print "" + print('') if CLEANUP: balancers = gcelb.list_balancers() healthchecks = gcelb.ex_list_healthchecks()
