mirror of https://github.com/apache/nifi.git
NIFI-7629: Make property PROJECT_ID evaluate EL on processors ConsumeGCPubSub & PublishGCPubSub
This commit is contained in:
parent
19a84dd3dd
commit
c7a235f854
|
@ -179,7 +179,7 @@ public class ConsumeGCPubSub extends AbstractGCPubSubProcessor {
|
|||
|
||||
private String getSubscriptionName(ProcessContext context) {
|
||||
final String subscriptionName = context.getProperty(SUBSCRIPTION).evaluateAttributeExpressions().getValue();
|
||||
final String projectId = context.getProperty(PROJECT_ID).getValue();
|
||||
final String projectId = context.getProperty(PROJECT_ID).evaluateAttributeExpressions().getValue();
|
||||
|
||||
if (subscriptionName.contains("/")) {
|
||||
return ProjectSubscriptionName.parse(subscriptionName).toString();
|
||||
|
|
|
@ -209,7 +209,7 @@ public class PublishGCPubSub extends AbstractGCPubSubProcessor{
|
|||
|
||||
private ProjectTopicName getTopicName(ProcessContext context) {
|
||||
final String topic = context.getProperty(TOPIC_NAME).evaluateAttributeExpressions().getValue();
|
||||
final String projectId = context.getProperty(PROJECT_ID).getValue();
|
||||
final String projectId = context.getProperty(PROJECT_ID).evaluateAttributeExpressions().getValue();
|
||||
|
||||
if (topic.contains("/")) {
|
||||
return ProjectTopicName.parse(topic);
|
||||
|
|
Loading…
Reference in New Issue