Skip to content

Commit a7bbc6a

Browse files
wudiredzhaocopybara-github
authored andcommitted
Internal change
PiperOrigin-RevId: 945657102
1 parent b8afa2b commit a7bbc6a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/java/com/google/devtools/mobileharness/service/deviceconfig/storage/LocalFileStorageClient.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,13 @@ public Optional<LabConfig> getLabConfig(String hostName) throws MobileHarnessExc
7474
@Override
7575
public void upsertDeviceConfig(DeviceConfig deviceConfig) throws MobileHarnessException {
7676
String path = getDeviceConfigPath(deviceConfig.getUuid());
77-
localFileUtil.writeToFile(path, deviceConfig.toString());
77+
localFileUtil.writeToFile(path, TextFormat.printer().printToString(deviceConfig));
7878
}
7979

8080
@Override
8181
public void upsertLabConfig(LabConfig labConfig) throws MobileHarnessException {
8282
String path = getLabConfigPath(labConfig.getHostName());
83-
localFileUtil.writeToFile(path, labConfig.toString());
83+
localFileUtil.writeToFile(path, TextFormat.printer().printToString(labConfig));
8484
}
8585

8686
@Override

0 commit comments

Comments
 (0)