From 1a5ae366f49ed117cc32a8c7c5f447d2d346fd94 Mon Sep 17 00:00:00 2001 From: Sam Doran Date: Fri, 28 Jun 2019 12:24:03 -0400 Subject: [PATCH] hostname - fix Oracle Linux (#58510) --- 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 d53b439893c..698090f4182 100644 --- a/lib/ansible/modules/system/hostname.py +++ b/lib/ansible/modules/system/hostname.py @@ -657,7 +657,7 @@ class ScientificHostname(Hostname): class OracleLinuxHostname(Hostname): platform = 'Linux' - distribution = 'Ol' + distribution = 'Oracle' strategy_class = RedHatStrategy