@@ -135,7 +135,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
135135 /** @var \Platformsh\Cli\Service\QuestionHelper $questionHelper */
136136 $ questionHelper = $ this ->getService ('question_helper ' );
137137
138- $ containerProfiles = $ nextDeployment ->container_profiles ;
138+ $ containerProfiles = $ this -> sortContainerProfiles ( $ nextDeployment ->container_profiles ) ;
139139
140140 // Remove guaranteed profiles if project does not support it.
141141 $ supportsGuaranteedCPU = $ this ->api ()->supportsGuaranteedCPU ($ nextDeployment ->project_info );
@@ -203,13 +203,14 @@ protected function execute(InputInterface $input, OutputInterface $output)
203203 || (isset ($ properties ['resources ' ]['minimum ' ]['memory ' ]) && $ sizeInfo ['memory ' ] < $ properties ['resources ' ]['minimum ' ]['memory ' ])) {
204204 continue ;
205205 }
206- $ description = sprintf ('CPU %s, memory %s MB ' , $ sizeInfo ['cpu ' ], $ sizeInfo ['memory ' ]);
206+ $ description = sprintf ('CPU %s, memory %s MB (%s) ' , $ sizeInfo ['cpu ' ], $ sizeInfo ['memory ' ], $ sizeInfo [ ' cpu_type ' ]);
207207 if (isset ($ properties ['resources ' ]['profile_size ' ])
208208 && $ profileSize == $ properties ['resources ' ]['profile_size ' ]) {
209209 $ description .= ' <question>(current)</question> ' ;
210210 } elseif ($ defaultOption !== null && $ defaultOption === $ profileSize ) {
211211 $ description .= ' <question>(default)</question> ' ;
212212 }
213+
213214 $ options [$ profileSize ] = $ description ;
214215 }
215216
@@ -410,8 +411,8 @@ private function summarizeChangesPerService($name, $service, array $updates, arr
410411 $ newProperties = array_replace_recursive ($ properties , $ updates );
411412 $ newSizeInfo = $ this ->sizeInfo ($ newProperties , $ containerProfiles );
412413 $ this ->stdErr ->writeln (' CPU: ' . $ this ->formatChange (
413- $ this ->formatCPU ($ sizeInfo ? $ sizeInfo ['cpu ' ] : null ),
414- $ this ->formatCPU ($ newSizeInfo ['cpu ' ])
414+ $ this ->formatCPU ($ sizeInfo ? $ sizeInfo ['cpu ' ] : null ) . ' ' . $ this -> formatCPUType ( $ sizeInfo ),
415+ $ this ->formatCPU ($ newSizeInfo ['cpu ' ]) . ' ' . $ this -> formatCPUType ( $ newSizeInfo )
415416 ));
416417 $ this ->stdErr ->writeln (' Memory: ' . $ this ->formatChange (
417418 $ sizeInfo ? $ sizeInfo ['memory ' ] : null ,
0 commit comments