X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=common%2Fpython%2Frift%2Fmano%2Fyang_translator%2Fshell.py;fp=common%2Fpython%2Frift%2Fmano%2Fyang_translator%2Fshell.py;h=915cd6c5988d1229aa7bb30c5cf2f4e90f48fdb4;hb=66ed44eebbbe7bbc23d44780ae11e7feaa4b43ba;hp=f353e922a53bfde7cd6a713c4ec0e2abf1d620f7;hpb=43408eebd1ef64aa9456c92c12dcafe781543436;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}"). \