File tree Expand file tree Collapse file tree 2 files changed +6
-13
lines changed
ResourceManager/Compute/Commands.Compute/Generated
ServiceManagement/Compute/Commands.ServiceManagement.Preview/Automation Expand file tree Collapse file tree 2 files changed +6
-13
lines changed Original file line number Diff line number Diff line change @@ -6100,18 +6100,7 @@ exports.init = function (cli) {
6100
6100
nextPageLink = pageResult . nextPageLink ;
6101
6101
}
6102
6102
6103
- if ( cli . output . format ( ) . json ) {
6104
- cli . output . json ( result ) ;
6105
- }
6106
- else {
6107
- cli . output . table ( result , function ( row , item ) {
6108
- var rgName = item . id ? utils . parseResourceReferenceUri ( item . id ) . resourceGroupName : null ;
6109
- row . cell ( $ ( 'ResourceGroupName' ) , rgName ) ;
6110
- row . cell ( $ ( 'Name' ) , item . name ) ;
6111
- row . cell ( $ ( 'ProvisioningState' ) , item . provisioningState ) ;
6112
- row . cell ( $ ( 'Location' ) , item . location ) ;
6113
- } ) ;
6114
- }
6103
+ cli . output . json ( result ) ;
6115
6104
} ) ;
6116
6105
/*
6117
6106
VirtualMachineScaleSets PowerOff
Original file line number Diff line number Diff line change @@ -1296,6 +1296,10 @@ function Generate-CliFunctionCommandImpl
1296
1296
$code += " nextPageLink = pageResult.nextPageLink;" + $NEW_LINE ;
1297
1297
$code += " }" + $NEW_LINE ;
1298
1298
$code += " " + $NEW_LINE ;
1299
+ }
1300
+
1301
+ if ($PageMethodInfo -ne $null -and $methodName -ne ' ListSkus' )
1302
+ {
1299
1303
$code += " if (cli.output.format().json) {" + $NEW_LINE ;
1300
1304
$code += " cli.output.json(result);" + $NEW_LINE ;
1301
1305
$code += " }" + $NEW_LINE ;
@@ -1308,7 +1312,7 @@ function Generate-CliFunctionCommandImpl
1308
1312
$code += " row.cell(`$ ('Location'), item.location);" + $NEW_LINE ;
1309
1313
$code += " });" + $NEW_LINE ;
1310
1314
$code += " }" + $NEW_LINE ;
1311
- }
1315
+ }
1312
1316
else
1313
1317
{
1314
1318
$code += " cli.output.json(result);" + $NEW_LINE ;
You can’t perform that action at this time.
0 commit comments