-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
disk: make
PartitionTableType
a string for otk-*
This commit switches the `PartitionTableType` from an enum to a string. The reason is that the `otk` utils serialize this type as a JSON. While the json is strictly internal and we make no gurantees about it is still nicer to keep the strings because otherwise the diff in the json looks something like: ```json @@ -147,7 +147,7 @@ func TestUnmarshalOutput(t *testing.T) { "partition-table": { "Size": 911, "UUID": "", - "Type": "gpt", + "Type": 2, "Partitions": [ { "Start": 0, ``` a perversing slightly easier dumability seems worth it (plus less test code in cmd/otk/* needs to change).
- Loading branch information
Showing
5 changed files
with
27 additions
and
33 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
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