mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 11:21:25 -07:00
added timestamps to nxos_command module (#50261)
* added timestamps to nxos_command module nxos_command module now returns timestamps field, which shows command execution time * fixed unit test failure for /lib/ansible/module_utils/basic * cosmetic changes to align with PEP 8
This commit is contained in:
parent
fdb91a5c02
commit
e150943314
5 changed files with 45 additions and 20 deletions
|
@ -2918,3 +2918,7 @@ class AnsibleModule(object):
|
|||
|
||||
def get_module_path():
|
||||
return os.path.dirname(os.path.realpath(__file__))
|
||||
|
||||
|
||||
def get_timestamp():
|
||||
return datetime.datetime.now().replace(microsecond=0).isoformat()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue