mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Remove commented out lines
This commit is contained in:
parent
03f69ac6c8
commit
08c0b7e66e
1 changed files with 0 additions and 5 deletions
|
@ -61,8 +61,6 @@ If (-not $params.password.GetType)
|
||||||
Fail-Json $result "missing required arguments: password"
|
Fail-Json $result "missing required arguments: password"
|
||||||
}
|
}
|
||||||
|
|
||||||
$extra_args = $params "extra_args" ""
|
|
||||||
|
|
||||||
If ($params.state) {
|
If ($params.state) {
|
||||||
$state = $params.state.ToString().ToLower()
|
$state = $params.state.ToString().ToLower()
|
||||||
If (($state -ne 'present') -and ($state -ne 'absent')) {
|
If (($state -ne 'present') -and ($state -ne 'absent')) {
|
||||||
|
@ -77,9 +75,6 @@ $username = Get-Attr $params "name"
|
||||||
$password = Get-Attr $params "password"
|
$password = Get-Attr $params "password"
|
||||||
|
|
||||||
$user_obj = Get-User $username
|
$user_obj = Get-User $username
|
||||||
if (-not $user_obj) {
|
|
||||||
Fail-Json $result "Could not find user: $username"
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($state -eq 'present') {
|
if ($state -eq 'present') {
|
||||||
# Add or update user
|
# Add or update user
|
||||||
|
|
Loading…
Reference in a new issue