mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 03:11:24 -07:00
backuplocal => backup_local for API standardization reasons
This commit is contained in:
parent
b97e2a6f5a
commit
aa704a6111
4 changed files with 5 additions and 5 deletions
|
@ -276,7 +276,7 @@ class AnsibleModule(object):
|
|||
infile.close()
|
||||
return digest.hexdigest()
|
||||
|
||||
def backuplocal(self, fn):
|
||||
def backup_local(self, fn):
|
||||
'''make a date-marked backup of the specified file, return True or False on success or failure'''
|
||||
# backups named basename-YYYY-MM-DD@HH:MM~
|
||||
ext = time.strftime("%Y-%m-%d@%H:%M~", time.localtime(time.time()))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue