Update to run under Python 3

Updating charm to support execution under Python 3.

Change-Id: I1429d1c6b634959e0062a8e9f4bc615c58bf31e0
This commit is contained in:
Liam Young
2017-11-21 14:43:13 +00:00
committed by Nicolas Pochet
parent 1cc162e5e5
commit 19aaffaa81
19 changed files with 65 additions and 73 deletions

View File

@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python3
#
# Copyright 2016 Canonical Ltd
#
@@ -33,6 +33,8 @@ _add_path(_hooks)
from charmhelpers.core.hookenv import action_fail
sys.path.append('hooks/')
from glance_utils import (
pause_unit_helper,
resume_unit_helper,