We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents dbcaa93 + d2ce18d commit bc1b91fCopy full SHA for bc1b91f
lib/publiccloud/ec2.pm
@@ -122,7 +122,7 @@ sub upload_img {
122
. "--machine '" . $img_arch . "' "
123
. "-n '" . $self->prefix . '-' . $img_name . "' "
124
. "--virt-type hvm --sriov-support "
125
- . (is_byos() ? '' : '--use-root-swap ')
+ . ((is_byos() || get_var('PUBLIC_CLOUD_SLES4SAP')) ? '' : '--use-root-swap ')
126
. '--ena-support '
127
. "--verbose "
128
. "--regions '" . $self->provider_client->region . "' "
0 commit comments