Skip to content

Commit

Permalink
[Controller] add OS_ANDROID
Browse files Browse the repository at this point in the history
  • Loading branch information
jin-xiaofeng committed Oct 12, 2023
1 parent 8b5fc90 commit ae7f9dd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
1 change: 1 addition & 0 deletions server/controller/common/const.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ const (
OS_UBUNTU = 3
OS_SUSE = 4
OS_WINDOWS = 5
OS_ANDROID = 6
)

const (
Expand Down
13 changes: 7 additions & 6 deletions server/controller/common/os.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,13 @@ func GetNameSpace() string {
}

var osDict = map[string]int{
"centos": OS_CENTOS,
"red hat": OS_REDHAT,
"redhat": OS_REDHAT,
"ubuntu": OS_UBUNTU,
"suse": OS_SUSE,
"windows": OS_WINDOWS,
"centos": OS_CENTOS,
"red hat": OS_REDHAT,
"redhat": OS_REDHAT,
"ubuntu": OS_UBUNTU,
"suse": OS_SUSE,
"windows": OS_WINDOWS,
"cuttlefish": OS_ANDROID,
}

var archDict = map[string]int{
Expand Down

0 comments on commit ae7f9dd

Please sign in to comment.