1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Check .GetType rather than object directly

This commit is contained in:
Paul Durivage 2014-06-19 16:41:24 -05:00
parent 319f32e408
commit e6cd216ade

View file

@ -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 {