Github user koushik-das commented on a diff in the pull request:

    https://github.com/apache/cloudstack/pull/1360#discussion_r58874658
  
    --- Diff: 
services/secondary-storage/controller/src/org/apache/cloudstack/secondarystorage/SecondaryStorageManagerImpl.java
 ---
    @@ -521,6 +522,76 @@ public SecondaryStorageVmVO startNew(long 
dataCenterId, SecondaryStorageVm.Role
             return null;
         }
     
    +    /**
    +     * Get the default network for the secondary storage VM, based on the 
zone it is in. Delegates to
    +     * either {@link #getDefaultNetworkForZone(DataCenter)} or {@link 
#getDefaultNetworkForAdvancedSGZone(DataCenter)},
    +     * depending on the zone network type and whether or not security 
groups are enabled in the zone.
    +     * @param dc - The zone (DataCenter) of the secondary storage VM.
    +     * @return The default network for use with the secondary storage VM.
    +     */
    +    protected NetworkVO getDefaultNetworkForCreation(DataCenter dc) {
    --- End diff --
    
    Yes my comment was related to removing the code duplication here.


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to