'Gets the type of software filename, such as cfg, zip, dat...'

def get_software_filename_type(self, filename):

    if (filename is None):
        return None
    if ('    ' in filename):
        self.module.fail_json(msg='Error:    Software    file    name    include    spaces.')
    iftype = None
    if filename.endswith('.cc'):
        iftype = 'cc'
    else:
        return None
    return iftype.lower()
