VirtualBox

Ignore:
Timestamp:
Apr 15, 2019 2:25:27 PM (6 years ago)
Author:
vboxsync
Message:

Main:bugref:6598:Fixed the tdStorageSnapshotMerging1.py for linux

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/tests/storage/tdStorageSnapshotMerging1.py

    r76553 r78123  
    183183        oVM = oSnapshot.machine;
    184184        oMedium = self.getMedium(oVM, sController);
    185 
    186         for oChildMedium in oMedium.children:
     185       
     186        aoMediumChildren = self.oVBoxMgr.getArray(oMedium, 'children')
     187        if aoMediumChildren is None or len(aoMediumChildren) < 1:
     188            return None;
     189
     190        for oChildMedium in aoMediumChildren:
    187191            for uSnapshotId in oChildMedium.getSnapshotIds(oVM.id):
    188192                if uSnapshotId == oVM.id:
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette