Return-Path: X-Original-To: apmail-cloudstack-dev-archive@www.apache.org Delivered-To: apmail-cloudstack-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 847D018AE1 for ; Thu, 16 Jul 2015 04:47:19 +0000 (UTC) Received: (qmail 7688 invoked by uid 500); 16 Jul 2015 04:47:19 -0000 Delivered-To: apmail-cloudstack-dev-archive@cloudstack.apache.org Received: (qmail 7636 invoked by uid 500); 16 Jul 2015 04:47:19 -0000 Mailing-List: contact dev-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list dev@cloudstack.apache.org Received: (qmail 7625 invoked by uid 99); 16 Jul 2015 04:47:18 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Jul 2015 04:47:18 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 95ED4E091F; Thu, 16 Jul 2015 04:47:18 +0000 (UTC) From: bhaisaab To: dev@cloudstack.apache.org Reply-To: dev@cloudstack.apache.org References: In-Reply-To: Subject: [GitHub] cloudstack pull request: CLOUDSTACK-8616: Redundant VPC with both ... Content-Type: text/plain Message-Id: <20150716044718.95ED4E091F@git1-us-west.apache.org> Date: Thu, 16 Jul 2015 04:47:18 +0000 (UTC) Github user bhaisaab commented on a diff in the pull request: https://github.com/apache/cloudstack/pull/587#discussion_r34755507 --- Diff: systemvm/patches/debian/config/opt/cloud/bin/cs/CsFile.py --- @@ -35,10 +35,9 @@ def load(self): self.new_config.append(line) except IOError: logging.debug("File %s does not exist" % self.filename) - return else: logging.debug("Reading file %s" % self.filename) - self.config = copy.deepcopy(self.new_config) + self.config = list(self.new_config) --- End diff -- Alright, as I mentioned in my comment if the list contains (references to) other objects then only copy.deepcopy should be used. I was not clear about the usage, after reading the code I think it would work since we're working with list of strings (read from file), followed by append/insert operations; list() would be indeed faster than copy.deepcopy in this case as well. --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---