Fixed some flake8 warnings
This commit is contained in:
parent
a4fe2e2db9
commit
5c3cf7682f
4 changed files with 5 additions and 6 deletions
|
@ -115,8 +115,8 @@ class CeleryTaskTestCase(TestCase):
|
||||||
'response_object').stripe_plan_id}])
|
'response_object').stripe_plan_id}])
|
||||||
stripe_subscription_obj = subscription_result.get('response_object')
|
stripe_subscription_obj = subscription_result.get('response_object')
|
||||||
# Check if the subscription was approved and is active
|
# Check if the subscription was approved and is active
|
||||||
if stripe_subscription_obj is None or \
|
if stripe_subscription_obj is None \
|
||||||
stripe_subscription_obj.status != 'active':
|
or stripe_subscription_obj.status != 'active':
|
||||||
msg = subscription_result.get('error')
|
msg = subscription_result.get('error')
|
||||||
raise Exception("Creating subscription failed: {}".format(msg))
|
raise Exception("Creating subscription failed: {}".format(msg))
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,6 @@ from .views import (
|
||||||
SSHKeyChoiceView, DashboardView, SettingsView)
|
SSHKeyChoiceView, DashboardView, SettingsView)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
url(r'index/?$', IndexView.as_view(), name='index'),
|
url(r'index/?$', IndexView.as_view(), name='index'),
|
||||||
url(r'django/?$', DjangoHostingView.as_view(), name='djangohosting'),
|
url(r'django/?$', DjangoHostingView.as_view(), name='djangohosting'),
|
||||||
|
|
|
@ -350,8 +350,8 @@ class OpenNebulaManager():
|
||||||
return template_pool
|
return template_pool
|
||||||
except ConnectionRefusedError:
|
except ConnectionRefusedError:
|
||||||
logger.info(
|
logger.info(
|
||||||
"""Could not connect to host: {host} via protocol
|
"""Could not connect to host: {host} via protocol
|
||||||
{protocol}""".format(
|
{protocol}""".format(
|
||||||
host=settings.OPENNEBULA_DOMAIN,
|
host=settings.OPENNEBULA_DOMAIN,
|
||||||
protocol=settings.OPENNEBULA_PROTOCOL)
|
protocol=settings.OPENNEBULA_PROTOCOL)
|
||||||
)
|
)
|
||||||
|
|
|
@ -38,7 +38,7 @@ def save_ssh_key(self, hosts, keys):
|
||||||
'state': True # whether key is to be added or
|
'state': True # whether key is to be added or
|
||||||
} # removed
|
} # removed
|
||||||
"""
|
"""
|
||||||
logger.debug("""Running save_ssh_key task for
|
logger.debug("""Running save_ssh_key task for
|
||||||
Hosts: {hosts_str}
|
Hosts: {hosts_str}
|
||||||
Keys: {keys_str}""".format(hosts_str=", ".join(hosts),
|
Keys: {keys_str}""".format(hosts_str=", ".join(hosts),
|
||||||
keys_str=", ".join([
|
keys_str=", ".join([
|
||||||
|
|
Loading…
Reference in a new issue