diff --git a/muranodashboard/api/rest/packages.py b/muranodashboard/api/rest/packages.py index 00039337..e6d8c34f 100644 --- a/muranodashboard/api/rest/packages.py +++ b/muranodashboard/api/rest/packages.py @@ -63,5 +63,3 @@ class Packages(generic.View): 'packages': [p.to_dict() for p in packages], 'has_more_data': has_more_data, } - - diff --git a/muranodashboard/common/net.py b/muranodashboard/common/net.py index 3dcb3cf4..199a7fb8 100644 --- a/muranodashboard/common/net.py +++ b/muranodashboard/common/net.py @@ -82,8 +82,8 @@ def get_available_networks(request, include_subnets=True, cidr=subnet.cidr, subnet=subnet.name_or_id)) - network_choices.append(((net.id, subnet.id), netname - or full_name)) + network_choices.append( + ((net.id, subnet.id), netname or full_name)) else: netname = netname or net.name_or_id diff --git a/muranodashboard/environments/tables.py b/muranodashboard/environments/tables.py index 35107026..cfe281a9 100644 --- a/muranodashboard/environments/tables.py +++ b/muranodashboard/environments/tables.py @@ -185,11 +185,11 @@ class DeployEnvironment(tables.BatchAction): or successful deploy or delete failure) """ status = getattr(environment, 'status', None) - if (status != consts.STATUS_ID_DEPLOY_FAILURE - and not environment.has_new_services): - return False - if (status in consts.NO_ACTION_ALLOWED_STATUSES - or status == consts.STATUS_ID_READY): + if (status != consts.STATUS_ID_DEPLOY_FAILURE and + not environment.has_new_services): + return False + if (status in consts.NO_ACTION_ALLOWED_STATUSES or + status == consts.STATUS_ID_READY): return False return True @@ -219,8 +219,8 @@ class DeployThisEnvironment(tables.Action): """ status, version = _get_environment_status_and_version(request, self.table) - if (status in consts.NO_ACTION_ALLOWED_STATUSES - or status == consts.STATUS_ID_READY): + if (status in consts.NO_ACTION_ALLOWED_STATUSES or + status == consts.STATUS_ID_READY): return False apps = self.table.data