Module Expr Str Import alias Import alias Import alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr IfExp NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore BoolOpOr AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr TryExcept body Assign NameStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str handlers ExceptHandler type NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad AttributeLoad NameLoad attr attr Raise Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad NameLoad For NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword Num body Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad If NameLoad body Assign NameStore BinOpMod Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Call AttributeLoad NameLoad attr Num NameLoad orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list decorator_list
N/A N/A 
Copyright (c) 2015 Red Hat, Inc
All rights reserved.

This software may be modified and distributed under the terms
of the BSD license. See the LICENSE file for details.


Pre build plugin which changes FROM instruction
 N/A fileinput N/A re N/A sys atomic_reactor.plugin PreBuildPlugin atomic_reactor.util ImageName ChangeFromPlugin N/A PreBuildPlugin N/A N/A key change_from_in_dockerfile __init__ N/A N/A self tasker workflow base_image N/A None N/A N/A 
        constructor

        :param tasker: DockerTasker instance
        :param workflow: DockerBuildWorkflow instance
        :param base_image: str, change base image to ID of this image
         N/A N/A N/A N/A super ChangeFromPlugin self __init__ tasker workflow N/A N/A self base_image N/A base_image N/A N/A ImageName parse base_image None N/A run N/A N/A self N/A N/A N/A 
        run the plugin
         N/A base_image N/A N/A self base_image N/A N/A N/A self workflow builder base_image N/A N/A N/A base_image_id N/A N/A N/A self workflow base_image_inspect N/A Id N/A N/A N/A KeyError N/A N/A N/A N/A N/A self log error Id is missing in inspection: '%s' N/A N/A self workflow base_image_inspect N/A N/A N/A N/A N/A self log debug using base image '%s', id '%s' base_image base_image_id N/A line N/A N/A fileinput input N/A N/A N/A self workflow builder df_path inplace 1 N/A N/A re_match N/A N/A re match ^FROM .+$ line N/A re_match N/A N/A new_from N/A FROM %s base_image_id N/A N/A N/A N/A sys stdout write N/A new_from N/A N/A N/A N/A self log info changed FROM: '%s' -> '%s' N/A N/A re_match group 0 new_from N/A N/A N/A N/A N/A sys stdout write line N/A N/A