File str_bytes.patch of Package aws-efs-utils.28250

Summary: use bytes in comparison to ensure python2 compatibility.
Index: efs-utils-1.7/src/mount_efs/__init__.py
===================================================================
--- efs-utils-1.7.orig/src/mount_efs/__init__.py
+++ efs-utils-1.7/src/mount_efs/__init__.py
@@ -249,8 +249,14 @@ def get_version_specific_stunnel_options
 
     stunnel_output = err.splitlines()
 
-    check_host_supported = is_stunnel_option_supported(stunnel_output, 'checkHost')
-    ocsp_aia_supported = is_stunnel_option_supported(stunnel_output, 'OCSPaia')
+    check_host_supported = is_stunnel_option_supported(
+        stunnel_output,
+        b'checkHost'
+    )
+    ocsp_aia_supported = is_stunnel_option_supported(
+        stunnel_output,
+        b'OCSPaia'
+    )
 
     return check_host_supported, ocsp_aia_supported
 
openSUSE Build Service is sponsored by