Make CreateUser idempotent (#306)

This commit is contained in:
Ana Hobden 2023-03-07 09:53:12 -08:00 committed by GitHub
parent c42a3f58d9
commit 6219b2c48d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -51,6 +51,9 @@ impl CreateUser {
gid,
));
}
tracing::debug!("Creating user `{}` already complete", this.name);
return Ok(StatefulAction::completed(this));
}
Ok(StatefulAction::uncompleted(this))