From b3f062b5ca04707ff6df076fc85f1cba0c4cc61e Mon Sep 17 00:00:00 2001 From: Dag Wieers Date: Mon, 17 Dec 2018 17:41:43 +0100 Subject: [PATCH] Clean up backup doc fragment (#49995) --- .../utils/module_docs_fragments/backup.py | 35 ++++++------------- 1 file changed, 11 insertions(+), 24 deletions(-) diff --git a/lib/ansible/utils/module_docs_fragments/backup.py b/lib/ansible/utils/module_docs_fragments/backup.py index f6b2902512a..5d46528f268 100644 --- a/lib/ansible/utils/module_docs_fragments/backup.py +++ b/lib/ansible/utils/module_docs_fragments/backup.py @@ -1,31 +1,18 @@ -# Copyright (c) 2015 Ansible, Inc -# -# This file is part of Ansible -# -# Ansible is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# Ansible is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Ansible. If not, see . +# -*- coding: utf-8 -*- + +# Copyright: (c) 2015, Ansible, Inc +# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) class ModuleDocFragment(object): # Standard documentation fragment - DOCUMENTATION = ''' + DOCUMENTATION = r''' options: - backup: - description: - - Create a backup file including the timestamp information so you can get - the original file back if you somehow clobbered it incorrectly. - required: false - choices: [ "yes", "no" ] - default: "no" + backup: + description: + - Create a backup file including the timestamp information so you can get + the original file back if you somehow clobbered it incorrectly. + type: bool + default: no '''