Update PlanFileEditAtomicFlow.py
Browse files
PlanFileEditAtomicFlow.py
CHANGED
|
@@ -45,7 +45,7 @@ class PlanFileEditAtomicFlow(AtomicFlow):
|
|
| 45 |
assert os.path.isfile(plan_file_loc), f"{plan_file_loc} is not a file"
|
| 46 |
|
| 47 |
def _generate_input_to_writer(self, input_data: Dict[str, Any]):
|
| 48 |
-
plan_str = input_data['plan']
|
| 49 |
plan_file_location = input_data["plan_file_location"]
|
| 50 |
content_to_write = self._generate_content(plan_file_location, plan_str)
|
| 51 |
file_location_to_write = self._generate_temp_file_location(plan_file_location)
|
|
|
|
| 45 |
assert os.path.isfile(plan_file_loc), f"{plan_file_loc} is not a file"
|
| 46 |
|
| 47 |
def _generate_input_to_writer(self, input_data: Dict[str, Any]):
|
| 48 |
+
plan_str = input_data['plan'] if "plan" in input_data else input_data['new_plan']
|
| 49 |
plan_file_location = input_data["plan_file_location"]
|
| 50 |
content_to_write = self._generate_content(plan_file_location, plan_str)
|
| 51 |
file_location_to_write = self._generate_temp_file_location(plan_file_location)
|