Update to run under Python 3
Updating charm to support execution under Python 3. Change-Id: I1429d1c6b634959e0062a8e9f4bc615c58bf31e0
This commit is contained in:
committed by
Nicolas Pochet
parent
1cc162e5e5
commit
19aaffaa81
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user