Skip to content

Commit

Permalink
Make CreateUser idempotent (#306)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hoverbear authored Mar 7, 2023
1 parent c42a3f5 commit 6219b2c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/action/base/create_user.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ impl CreateUser {
gid,
));
}

tracing::debug!("Creating user `{}` already complete", this.name);
return Ok(StatefulAction::completed(this));
}

Ok(StatefulAction::uncompleted(this))
Expand Down

0 comments on commit 6219b2c

Please sign in to comment.