summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorScott Moser <smoser@brickies.net>2019-10-11 14:54:49 +0000
committerServer Team CI Bot <josh.powers+server-team-bot@canonical.com>2019-10-11 14:54:49 +0000
commit7d5d34f3643a2108d667759f57a5ab63d0affadd (patch)
tree4ec5678e67e6100cd9863e344b98664bf95caa4d /tools
parentd3b1c4ae6bd237a04ba5df4306ff38f752f72132 (diff)
downloadvyos-cloud-init-7d5d34f3643a2108d667759f57a5ab63d0affadd.tar.gz
vyos-cloud-init-7d5d34f3643a2108d667759f57a5ab63d0affadd.zip
Add Support for e24cloud to Ec2 datasource.
e24cloud provides an EC2 compatible datasource. This just identifies their platform based on dmi 'system-vendor' having 'e24cloud'. https://www.e24cloud.com/en/ . Updated chassis typo in zstack unit test docstring. LP: #1696476
Diffstat (limited to 'tools')
-rwxr-xr-xtools/ds-identify5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/ds-identify b/tools/ds-identify
index 40fc0604..20a99ee9 100755
--- a/tools/ds-identify
+++ b/tools/ds-identify
@@ -905,6 +905,11 @@ ec2_identify_platform() {
*.zstack.io) _RET="ZStack"; return 0;;
esac
+ local vendor="${DI_DMI_SYS_VENDOR}"
+ case "$vendor" in
+ e24cloud) _RET="E24cloud"; return 0;;
+ esac
+
# AWS http://docs.aws.amazon.com/AWSEC2/
# latest/UserGuide/identify_ec2_instances.html
local uuid="" hvuuid="${PATH_SYS_HYPERVISOR}/uuid"