Github user ahgittin commented on a diff in the pull request:
https://github.com/apache/incubator-brooklyn/pull/850#discussion_r37578250
--- Diff:
core/src/main/java/org/apache/brooklyn/core/location/CatalogLocationResolver.java
---
@@ -55,6 +55,12 @@ public void init(ManagementContext managementContext) {
public Location newLocationFromString(Map locationFlags, String spec,
LocationRegistry registry) {
String id = spec.substring(NAME.length()+1);
CatalogItem<?, ?> item =
CatalogUtils.getCatalogItemOptionalVersion(managementContext, id);
+ if (item.isDeprecated()) {
+ log.warn("Use of deprecated catalog item
"+item.getSymbolicName()+":"+item.getVersion());
+ } else if (item.isDisabled()) {
--- End diff --
need to check disabled first
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---