@ -25,7 +25,7 @@
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
# USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
#
from ansible . module_utils . basic import env_fallback
from ansible . module_utils . basic import env_fallback , return_values
from ansible . module_utils . network_common import to_list , ComplexList
from ansible . module_utils . network_common import to_list , ComplexList
from ansible . module_utils . connection import exec_command
from ansible . module_utils . connection import exec_command
@ -50,6 +50,11 @@ def check_args(module, warnings):
warnings . append ( ' argument %s has been deprecated and will be '
warnings . append ( ' argument %s has been deprecated and will be '
' removed in a future version ' % key )
' removed in a future version ' % key )
if provider :
for param in ( ' auth_pass ' , ' password ' ) :
if provider . get ( param ) :
module . no_log_values . update ( return_values ( provider [ param ] ) )
def get_defaults_flag ( module ) :
def get_defaults_flag ( module ) :
rc , out , err = exec_command ( module , ' show running-config ? ' )
rc , out , err = exec_command ( module , ' show running-config ? ' )