Check .GetType rather than object directly

reviewable/pr18780/r1
Paul Durivage 11 years ago
parent 1fee46270c
commit eba5e34641

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

Loading…
Cancel
Save