summaryrefslogtreecommitdiffstats
path: root/ipaplatform
diff options
context:
space:
mode:
Diffstat (limited to 'ipaplatform')
-rw-r--r--ipaplatform/base/paths.py2
-rw-r--r--ipaplatform/redhat/tasks.py10
2 files changed, 0 insertions, 12 deletions
diff --git a/ipaplatform/base/paths.py b/ipaplatform/base/paths.py
index 62d9e703d..ca7eb6cf4 100644
--- a/ipaplatform/base/paths.py
+++ b/ipaplatform/base/paths.py
@@ -118,8 +118,6 @@ class BasePathNamespace(object):
SYSCONFIG_HTTPD = "/etc/sysconfig/httpd"
SYSCONFIG_KRB5KDC_DIR = "/etc/sysconfig/krb5kdc"
SYSCONFIG_NAMED = "/etc/sysconfig/named"
- SYSCONFIG_NETWORK = "/etc/sysconfig/network"
- SYSCONFIG_NETWORK_IPABKP = "/etc/sysconfig/network.ipabkp"
SYSCONFIG_NFS = "/etc/sysconfig/nfs"
SYSCONFIG_NTPD = "/etc/sysconfig/ntpd"
SYSCONFIG_ODS = "/etc/sysconfig/ods"
diff --git a/ipaplatform/redhat/tasks.py b/ipaplatform/redhat/tasks.py
index 2a110c994..bc7a9e389 100644
--- a/ipaplatform/redhat/tasks.py
+++ b/ipaplatform/redhat/tasks.py
@@ -343,7 +343,6 @@ class RedHatTaskNamespace(BaseTaskNamespace):
statestore.backup_state('network', 'hostname', old_hostname)
def restore_hostname(self, fstore, statestore):
- old_filepath = paths.SYSCONFIG_NETWORK
old_hostname = statestore.get_state('network', 'hostname')
if old_hostname is not None:
@@ -356,15 +355,6 @@ class RedHatTaskNamespace(BaseTaskNamespace):
old_hostname, e
)
- if fstore.has_file(old_filepath):
- # This is Fedora >=18 instance that was upgraded from previous
- # Fedora version which held network configuration
- # in /etc/sysconfig/network
- old_filepath_restore = paths.SYSCONFIG_NETWORK_IPABKP
- fstore.restore_file(old_filepath, old_filepath_restore)
- print("Deprecated configuration file '%s' was restored to '%s'" \
- % (old_filepath, old_filepath_restore))
-
filepath = paths.ETC_HOSTNAME
if fstore.has_file(filepath):
fstore.restore_file(filepath)