mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Check .GetType rather than object directly
This commit is contained in:
@@ -79,7 +79,7 @@ $user_obj = Get-User $username
|
||||
if ($state -eq 'present') {
|
||||
# Add or update user
|
||||
try {
|
||||
if ($user_obj) {
|
||||
if ($user_obj.GetType) {
|
||||
Update-Password $user_obj $password
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user