summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2022-01-18 04:13:45 +0000
committerGerrit Code Review <review@openstack.org>2022-01-18 04:13:45 +0000
commit15e3252910d45821a1f84622d54b946ab9127097 (patch)
treed1f99919f06eab699d15801574cb0ba23d0427f0
parent855bd80ec8d1e37488faddf426c1c56917592687 (diff)
parentb8cc0043d46318c7e11952109450587bee9567ab (diff)
downloadhorizon-15e3252910d45821a1f84622d54b946ab9127097.tar.gz
Merge "Fix maximum recursion depth error when generating documentation"
-rw-r--r--horizon/tables/actions.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/horizon/tables/actions.py b/horizon/tables/actions.py
index 25c452392..ad8945a4f 100644
--- a/horizon/tables/actions.py
+++ b/horizon/tables/actions.py
@@ -52,7 +52,10 @@ class BaseActionMetaClass(type):
# Options of action are set as class attributes, loading them.
options = {}
if attrs:
- options = attrs
+ # NOTE: It is required to create a new dict object
+ # to avoid a recursive reference when no parent class
+ # has 'base_options' attribute.
+ options = dict(attrs)
# Iterate in reverse to preserve final order
for base in bases[::-1]: