cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhaisaab <>
Subject [GitHub] cloudstack pull request: CLOUDSTACK-8616: Redundant VPC with both ...
Date Thu, 16 Jul 2015 04:47:18 GMT
Github user bhaisaab commented on a diff in the pull request:
    --- Diff: systemvm/patches/debian/config/opt/cloud/bin/cs/ ---
    @@ -35,10 +35,9 @@ def load(self):
             except IOError:
                 logging.debug("File %s does not exist" % self.filename)
    -            return
                 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 or file a JIRA ticket
with INFRA.

View raw message