mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Ansible.Basic - fix deprecate return value (#48908)
This commit is contained in:
parent
8e6c3b06b8
commit
e62edfc796
2 changed files with 3 additions and 3 deletions
|
@ -242,7 +242,7 @@ namespace Ansible.Basic
|
||||||
|
|
||||||
public void Deprecate(string message, string version)
|
public void Deprecate(string message, string version)
|
||||||
{
|
{
|
||||||
deprecations.Add(new Dictionary<string, string>() { { "message", message }, { "version", version } });
|
deprecations.Add(new Dictionary<string, string>() { { "msg", message }, { "version", version } });
|
||||||
LogEvent(String.Format("[DEPRECATION WARNING] {0} {1}", message, version));
|
LogEvent(String.Format("[DEPRECATION WARNING] {0} {1}", message, version));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -655,7 +655,7 @@ test_no_log - Invoked with:
|
||||||
}
|
}
|
||||||
deprecations = @(
|
deprecations = @(
|
||||||
@{
|
@{
|
||||||
message = "Param 'removed1' is deprecated. See the module docs for more information"
|
msg = "Param 'removed1' is deprecated. See the module docs for more information"
|
||||||
version = "2.1"
|
version = "2.1"
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
@ -710,7 +710,7 @@ test_no_log - Invoked with:
|
||||||
module_args = @{}
|
module_args = @{}
|
||||||
}
|
}
|
||||||
warnings = @("warning")
|
warnings = @("warning")
|
||||||
deprecations = @(@{message = "message"; version = "2.8"})
|
deprecations = @(@{msg = "message"; version = "2.8"})
|
||||||
}
|
}
|
||||||
$actual | Assert-DictionaryEquals -Expected $expected
|
$actual | Assert-DictionaryEquals -Expected $expected
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue