lint fixes

This commit is contained in:
Andres Rodriguez 2013-07-10 17:35:42 -04:00
parent 1042271bc7
commit b630b3fb92
2 changed files with 7 additions and 2 deletions

View File

@ -61,6 +61,7 @@ CONFIGS = register_configs()
config = json.loads(check_output(['config-get', '--format=json']))
@hooks.hook('install')
def install_hook():
juju_log('Installing glance packages')
@ -238,7 +239,8 @@ def config_changed():
if (available and
get_os_version_codename(available) >
get_os_version_codename(installed)):
juju_log('%s: Upgrading OpenStack release: %s -> %s' % (CHARM, installed, available))
juju_log('%s: Upgrading OpenStack release: %s -> %s' %
(CHARM, installed, available))
do_openstack_upgrade(CONFIGS)
# Update the new config files for existing relations.

View File

@ -1,7 +1,6 @@
#!/usr/bin/python
import os
import time
import sys
import subprocess
@ -25,6 +24,10 @@ from charmhelpers.contrib.openstack import (
templating,
context, )
from charmhelpers.contrib.hahelpers.cluster_utils import (
eligible_leader,
)
from charmhelpers.contrib.hahelpers.ceph_utils import (
create_keyring as ceph_create_keyring,
create_pool as ceph_create_pool,