Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
Kea
Commits
c139d4bf
Commit
c139d4bf
authored
Apr 05, 2011
by
Michal 'vorner' Vaner
Browse files
[trac670] Dict has it's own .copy()
No need for external one.
parent
ddfc6892
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/bin/zonemgr/zonemgr.py.in
View file @
c139d4bf
...
...
@@ -34,7 +34,6 @@ import threading
import select
import socket
import errno
import copy
from isc.datasrc import sqlite3_ds
from optparse import OptionParser, OptionValueError
from isc.config.ccsession import *
...
...
@@ -404,7 +403,7 @@ class ZonemgrRefresh:
def update_config_data(self, new_config):
""" update ZonemgrRefresh config """
backup =
copy.copy(
self._zonemgr_refresh_info)
backup = self._zonemgr_refresh_info
.copy(
)
try:
required = {}
# Add new zones
...
...
@@ -483,7 +482,7 @@ class Zonemgr:
""" Update config data. """
answer = create_answer(0)
ok = True
complete =
copy.copy(
self._config_data)
complete = self._config_data
.copy(
)
for key in new_config:
if key not in complete:
answer = create_answer(1, "Unknown config data: " + str(key))
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment