GoogleCloudPlatform / gce-rescue

GCE Rescue is a command-line tool to boot Google Cloud Platform VMs in Rescue Mode. Topics
Apache License 2.0
39 stars 3 forks source link

move instance's current rescue properties and methods to the rescuer #3

Closed runxinw closed 1 year ago

runxinw commented 1 year ago

move instance's current rescue properties and methods to the rescuer

pls see commit: 802d9f713a2602e22a9bc4a4df4035a9741ae90a

runxinw commented 1 year ago
@dataclass
class Rescuer:
  """Initialize Rescuer instance."""
  rescuee: Instance 
  # _rescue_source_disk: str = ''
  # _rescue_mode_status: Dict[str, Union[str, int]] = field(
  #   default_factory=lambda: ({})
  # )

  # @property
  # def rescue_disk(self) -> str:
  #   return f'linux-rescue-disk-{self.ts}'

  # @property
  # def rescue_source_disk(self) -> str:
  #   return self._rescue_source_disk

  # @rescue_source_disk.setter
  # def rescue_source_disk(self, v: str) -> None:
  #   self._rescue_source_disk = v
halleysouza commented 1 year ago

fixed in commit e957c8f53136de0fa163eedb2b938e5b63d19f6d