Unable to set sp_expire=-1
Closed this issue · 1 comments
angystardust commented
Hi @lqueryvg , I'm having an issue when setting the sp_expire value to -1 in order to disable the account expiration. It does work if i use the date format.
This is the traceback I get:
[root@ansible-master ]# ansible myhost -m chage -a 'user=bob sp_expire=-1'
v1lin000618 | FAILED! => {
"changed": false,
"failed": true,
"module_stderr": "",
"module_stdout": "Traceback (most recent call last):\r\n File \"/tmp/ansible_2IQU9Y/ansible_module_chage.py\", line 206, in <module>\r\n main()\r\n File \"/tmp/ansible_2IQU9Y/ansible_module_chage.py\", line 178, in main\r\n desired_value = str(_convert_date(desired_value))\r\n File \"/tmp/ansible_2IQU9Y/ansible_module_chage.py\", line 109, in _convert_date\r\n (y, m, d) = str.split('-')\r\nValueError: need more than 2 values to unpack\r\n",
"msg": "MODULE FAILURE",
"parsed": false
}
lqueryvg commented
fixed