Skip to content

Commit c613ea4

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Replace abc.abstractproperty with property and abc.abstractmethod"
2 parents 835abb7 + 1e571d3 commit c613ea4

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

magnum/conductor/monitors.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ def __init__(self, context, cluster):
3434
self.context = context
3535
self.cluster = cluster
3636

37-
@abc.abstractproperty
37+
@property
38+
@abc.abstractmethod
3839
def metrics_spec(self):
3940
"""Metric specification."""
4041

magnum/drivers/common/driver.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,8 @@ def update_cluster_status(self, context, cluster, use_admin_ctx=False):
174174
"""
175175
return
176176

177-
@abc.abstractproperty
177+
@property
178+
@abc.abstractmethod
178179
def provides(self):
179180
"""return a list of (server_type, os, coe) tuples
180181

magnum/drivers/heat/template_def.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -320,11 +320,13 @@ def update_outputs(self, stack, cluster_template, cluster,
320320
for output in self.nodegroup_output_mappings:
321321
output.set_output(stack, cluster_template, cluster)
322322

323-
@abc.abstractproperty
323+
@property
324+
@abc.abstractmethod
324325
def driver_module_path(self):
325326
pass
326327

327-
@abc.abstractproperty
328+
@property
329+
@abc.abstractmethod
328330
def template_path(self):
329331
pass
330332

@@ -357,7 +359,8 @@ def __init__(self):
357359
def driver_module_path(self):
358360
pass
359361

360-
@abc.abstractproperty
362+
@property
363+
@abc.abstractmethod
361364
def template_path(self):
362365
pass
363366

0 commit comments

Comments
 (0)