@property
    def formatted_command(self):
        bash = self.bash
        if bash not in (None, "", NotSpecified) and callable(bash):
            bash = bash()
        if bash not in (None, "", NotSpecified):
            return "/bin/bash -c {0}".format(shlex_quote(bash))

        command = self.command
        if command not in (None, "", NotSpecified) and callable(command):
            command = command()
        if command not in (None, "", NotSpecified):
            return command

        return None
Expect to require a unit ID.
dataset/ETHPy150Open realestate-com-au/harpoon/harpoon/option_spec/image_objs.py/Image.formatted_command--crossover with--dataset/ETHPy150Open heiskr/sagefy/server/test/test_models_response.py/test_unit