File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -38,25 +38,24 @@ public function createCluster(array $options = []): Cluster
3838 return $ this ->model (Cluster::class)->create ($ options );
3939 }
4040
41- public function createMultipleClusters (array $ options = [])
41+ public function createMultipleClusters (array $ options = [])
4242 {
4343 if (!array_key_exists ("count " , $ options )) {
44- throw new \RuntimeException ("Require 'count' " );
44+ throw new \RuntimeException ("Require 'count' " );
4545 }
4646
4747 $ response = $ this ->execute ($ this ->api ->postClusters (), $ options );
4848 # For multiple clusters, the current API returns only cluster IDs.
4949 $ ids = Utils::flattenJson (Utils::jsonDecode ($ response ), 'clusters ' );
5050 if ($ response ->getStatusCode () === 204 || empty ($ ids )) {
5151 return ;
52- }
52+ }
5353 foreach ($ ids as $ id ) {
5454 $ cluster = $ this ->model (Cluster::class);
5555 $ cluster ->id = $ id ;
5656 yield $ cluster ;
5757 }
58-
59- }
58+ }
6059
6160 public function scaleCluster (array $ options = []): Cluster
6261 {
Original file line number Diff line number Diff line change @@ -209,5 +209,4 @@ public function dataProcessingV1(array $options = []): \OpenStack\DataProcessing
209209 $ defaults = ['catalogName ' => 'sahara ' , 'catalogType ' => 'data-processing ' ];
210210 return $ this ->builder ->createService ('DataProcessing \\v1 ' , array_merge ($ defaults , $ options ));
211211 }
212-
213212}
You can’t perform that action at this time.
0 commit comments