X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=common%2Fpython%2Frift%2Fmano%2Fyang_translator%2Fshell.py;h=915cd6c5988d1229aa7bb30c5cf2f4e90f48fdb4;hb=a94a81cc5320aee3cbe05bbdbf3b6f0b244fb19f;hp=f353e922a53bfde7cd6a713c4ec0e2abf1d620f7;hpb=6f07e6f33f751ab4ffe624f6037f887b243bece2;p=osm%2FSO.git diff --git a/common/python/rift/mano/yang_translator/shell.py b/common/python/rift/mano/yang_translator/shell.py index f353e922..915cd6c5 100644 --- a/common/python/rift/mano/yang_translator/shell.py +++ b/common/python/rift/mano/yang_translator/shell.py @@ -149,7 +149,9 @@ class TranslatorShell(object): if typ.startswith('text/plain'): # Assume to be yaml return self.YAML - elif typ.startswith('application/x-gzip'): + # On Fedora 20, it return x-gzip, while on Ubuntu 16 it is gzip + elif typ.startswith('application/x-gzip') or \ + typ.startswith('application/gzip') : return self.TAR else: msg = _("The file {0} is not a supported type: {1}"). \