def get_security_groups(conn, vm_):
    '''
    Return a list of security groups to use, defaulting to ['default']
    '''
    securitygroup_enabled = config.get_cloud_config_value(
        'securitygroup_enabled', vm_, __opts__, default=True
    )
    if securitygroup_enabled:
        return config.get_cloud_config_value(
            'securitygroup', vm_, __opts__, default=['default']
        )
    else:
        return False
Return a list of security groups to use, defaulting to ['default']