diff --git a/changelogs/fragments/104_routeros_facts_export_verbose.yml b/changelogs/fragments/104_routeros_facts_export_verbose.yml new file mode 100644 index 00000000..2f80ea30 --- /dev/null +++ b/changelogs/fragments/104_routeros_facts_export_verbose.yml @@ -0,0 +1,2 @@ +minor_changes: + - routeros_facts - set configuration export on to verbose, for full configuration export (https://github.com/ansible-collections/community.network/pull/104). diff --git a/plugins/modules/network/routeros/routeros_facts.py b/plugins/modules/network/routeros/routeros_facts.py index df88aed4..3375c981 100644 --- a/plugins/modules/network/routeros/routeros_facts.py +++ b/plugins/modules/network/routeros/routeros_facts.py @@ -221,7 +221,7 @@ def to_megabytes(self, data): class Config(FactsBase): - COMMANDS = ['/export'] + COMMANDS = ['/export verbose'] def populate(self): super(Config, self).populate() diff --git a/tests/unit/plugins/modules/network/routeros/fixtures/routeros_facts/export b/tests/unit/plugins/modules/network/routeros/fixtures/routeros_facts/export_verbose similarity index 100% rename from tests/unit/plugins/modules/network/routeros/fixtures/routeros_facts/export rename to tests/unit/plugins/modules/network/routeros/fixtures/routeros_facts/export_verbose