Skip to content

Commit

Permalink
Merge pull request #272 from ImMin5/feature-service-accont-auto-sync
Browse files Browse the repository at this point in the history
None type error when check workspace references value
  • Loading branch information
ImMin5 authored Apr 22, 2024
2 parents e0a20a1 + 69e364c commit 00a4173
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/spaceone/identity/service/job_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ def _create_workspace(

if workspace_vo.name != name:
params.update({"name": name})
if workspace_vo.references not in reference_id:
if workspace_vo.references and reference_id not in workspace_vo.references:
params.update({"references": workspace_vo.references + [reference_id]})

params.update({"last_synced_at": datetime.utcnow()})
Expand Down

0 comments on commit 00a4173

Please sign in to comment.