-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #134 from microsoft/user/pgayam/cherrypick-remove-iso
[Cherry pick] Clean up seed ISO image attached to Arc VMs
- Loading branch information
Showing
7 changed files
with
222 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
pkg/virtualization/core/storage/drive/dvddrivecollection.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
|
||
package drive | ||
|
||
import ( | ||
wmi "github.com/microsoft/wmi/pkg/wmiinstance" | ||
) | ||
|
||
type DvdDriveCollection []*DvdDrive | ||
|
||
func NewDvdDriveCollection(instances []*wmi.WmiInstance) (col DvdDriveCollection, err error) { | ||
for _, inst := range instances { | ||
na, err1 := NewDvdDrive(inst) | ||
if err1 != nil { | ||
err = err1 | ||
return | ||
} | ||
col = append(col, na) | ||
} | ||
return | ||
} | ||
|
||
func (dvdcol *DvdDriveCollection) Close() (err error) { | ||
for _, value := range *dvdcol { | ||
value.Close() | ||
} | ||
return nil | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters