Revision 0fa579fd include/Image.h

View differences:

include/Image.h
191 191
        return (persistent_img == 1);
192 192
    };
193 193

  
194
    bool is_managed() const
195
    {
196
        bool one_managed;
197

  
198
        if (get_template_attribute("OPENNEBULA_MANAGED", one_managed) == false)
199
        {
200
            one_managed = true;
201
        }
202

  
203
        return one_managed;
204
    }
205

  
194 206
    /**
195 207
     *  Check the PERSISTENT attribute in an image Template, if not set the
196 208
     *  DEFAULT_IMAGE_PERSISTENT and DEFAULT_IMAGE_PERSISTENT_NEW are check in

Also available in: Unified diff