mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 11:52:28 +01:00
LOGGER -> logger in CloudInitUserDataProvider.java
This commit is contained in:
parent
6e988b8953
commit
a5f55602fc
@ -85,7 +85,7 @@ public class CloudInitUserDataProvider extends AdapterBase implements UserDataPr
|
||||
.filter(x -> (x.startsWith("#") && !x.startsWith("##")) || (x.startsWith("Content-Type:")))
|
||||
.collect(Collectors.toList());
|
||||
if (CollectionUtils.isEmpty(lines)) {
|
||||
LOGGER.debug("Failed to detect the user data format type as it does not contain a header");
|
||||
logger.debug("Failed to detect the user data format type as it does not contain a header");
|
||||
return null;
|
||||
}
|
||||
return lines.get(0);
|
||||
@ -96,7 +96,7 @@ public class CloudInitUserDataProvider extends AdapterBase implements UserDataPr
|
||||
if (defaultFormatType == null) {
|
||||
throw new CloudRuntimeException("Failed to detect the user data format type as it does not contain a header");
|
||||
}
|
||||
LOGGER.debug(String.format("Empty header for userdata, using the default format type: %s", defaultFormatType.name()));
|
||||
logger.debug(String.format("Empty header for userdata, using the default format type: %s", defaultFormatType.name()));
|
||||
return defaultFormatType;
|
||||
} else if (header.equalsIgnoreCase("#cloud-config")) {
|
||||
return FormatType.CLOUD_CONFIG;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user