From dd304b48116f3b1f10f769e1cc3a34c702b81d8f Mon Sep 17 00:00:00 2001 From: Sam Doran Date: Fri, 28 Jun 2019 12:24:03 -0400 Subject: [PATCH] [stable-2.8] hostname - fix Oracle Linux (#58510) (cherry picked from commit 1a5ae366f4) Co-authored-by: Sam Doran --- changelogs/fragments/hostname-oracle-linux-regeression.yaml | 2 ++ lib/ansible/modules/system/hostname.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/hostname-oracle-linux-regeression.yaml diff --git a/changelogs/fragments/hostname-oracle-linux-regeression.yaml b/changelogs/fragments/hostname-oracle-linux-regeression.yaml new file mode 100644 index 00000000000..9f4f57df742 --- /dev/null +++ b/changelogs/fragments/hostname-oracle-linux-regeression.yaml @@ -0,0 +1,2 @@ +bugfixes: + - hostname - fix regression with Oracle Linux (https://github.com/ansible/ansible/issues/42726) diff --git a/lib/ansible/modules/system/hostname.py b/lib/ansible/modules/system/hostname.py index e064b23fe85..67212a85b97 100644 --- a/lib/ansible/modules/system/hostname.py +++ b/lib/ansible/modules/system/hostname.py @@ -639,7 +639,7 @@ class ScientificHostname(Hostname): class OracleLinuxHostname(Hostname): platform = 'Linux' - distribution = 'Ol' + distribution = 'Oracle' strategy_class = RedHatStrategy