Skip to content

Commit

Permalink
Create foreman_user module (#296)
Browse files Browse the repository at this point in the history
* Create foreman_user module

Create a new module for managing users. In order to change password we
need to force the `password` field to be sent during POST but that
field is not included when doing GET, so we put it in `check_missing`.
  • Loading branch information
ephracis authored and Matthias Dellweg committed Jun 18, 2019
1 parent 58570fa commit 9ccd95c
Show file tree
Hide file tree
Showing 13 changed files with 24,530 additions and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/module_utils/foreman_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def update_resource(self, resource, old_entity, entity_dict, check_missing, chec
if check_missing is not None:
for key in check_missing:
if key in entity_dict and key not in volatile_entity.keys():
volatile_entity[key] = new_value
volatile_entity[key] = entity_dict[key]
fields.append(key)
if len(fields) > 0:
new_data = {'id': entity_id}
Expand Down
Loading

0 comments on commit 9ccd95c

Please sign in to comment.