Skip to content

Commit

Permalink
updated condition
Browse files Browse the repository at this point in the history
Signed-off-by: Bharath Krishna <[email protected]>
  • Loading branch information
bharathk005 committed Mar 5, 2024
1 parent e7eefc5 commit 1039f4b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sdk/python/v1beta1/kubeflow/katib/api/katib_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,9 @@ def create_experiment(

namespace = namespace or self.namespace

experiment_name = experiment.metadata.name
if not experiment_name:
if 'name' in experiment.metadata and experiment.metadata.name:
experiment_name = experiment.metadata.name
else:
experiment_name = experiment.metadata.generate_name

try:
Expand Down

0 comments on commit 1039f4b

Please sign in to comment.