def JujuAddMachine(self, unit):
    resp, _ = self.RemoteHostCommand('juju add-machine ssh:%s' %
                                     unit.internal_ip)

    # We don't know what the machine's going to be used for yet,
    # but track it's placement for easier access later.
    # We're looking for the output: created machine %d
    machine_id = _[_.rindex(' '):].strip()
    self.machines[machine_id] = unit
Adds a manually-created virtual machine to Juju.
dataset/ETHPy150Open GoogleCloudPlatform/PerfKitBenchmarker/perfkitbenchmarker/linux_virtual_machine.py/JujuMixin.JujuAddMachine