ca20301 python: Extract create_resource() helper

Authored and Committed by nsoffer 4 years ago
    python: Extract create_resource() helper
    
    Replace duplicate code for allocating and initializing sanlk_resource
    struct with a helper.
    
    Signed-off-by: Nir Soffer <nsoffer@redhat.com>
    
        
file modified
+23 -23