Skip to content

Commit

Permalink
small bug
Browse files Browse the repository at this point in the history
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
  • Loading branch information
vsoch committed Mar 3, 2023
1 parent 86db323 commit 04d5484
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sdk/python/v1alpha1/fluxoperator/decorator.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ class timed(Decorator):

def __call__(self, cls, *args, **kwargs):
# Name of the key is after command
if "name" in kwargs:
key = kwargs["name"]
if "timed_name" in kwargs:
key = kwargs["timed_name"]
# Fallback to name of function
else:
key = self.func.__name__
Expand Down

0 comments on commit 04d5484

Please sign in to comment.