Skip to content
Snippets Groups Projects
Commit fe9a9d54 authored by Jedrzej Rybicki's avatar Jedrzej Rybicki
Browse files

con management

parent 1d682e3d
No related branches found
No related tags found
No related merge requests found
Pipeline #76833 passed
...@@ -15,6 +15,7 @@ test: ...@@ -15,6 +15,7 @@ test:
before_script: before_script:
- airflow db init - airflow db init
- pip install -r requirements.txt - pip install -r requirements.txt
- airflow connections add --conn-uri https://b2share-testing.fz-juelich.de/ default_b2share
script: script:
- ls - ls
- pwd - pwd
......
...@@ -18,13 +18,13 @@ class B2ShareOperator(BaseOperator): ...@@ -18,13 +18,13 @@ class B2ShareOperator(BaseOperator):
**kwargs) -> None: **kwargs) -> None:
super().__init__(**kwargs) super().__init__(**kwargs)
self.name = name self.name = name
#self.connection = Connection.get_connection_from_secrets(conn_id) self.connection = Connection.get_connection_from_secrets(conn_id)
def execute(self, context): def execute(self, context):
message = "Hello {}".format(self.name) message = "Hello {}".format(self.name)
print(message) print(message)
#print(self.connection.host) print(self.connection.uri)
#print(f"Retrieving info from {self.connection.host}") #print(f"Retrieving info from {self.connection.host}")
lst = get_objects(server=server) lst = get_objects(server=server)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment