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:
before_script:
- airflow db init
- pip install -r requirements.txt
- airflow connections add --conn-uri https://b2share-testing.fz-juelich.de/ default_b2share
script:
- ls
- pwd
......
......@@ -18,13 +18,13 @@ class B2ShareOperator(BaseOperator):
**kwargs) -> None:
super().__init__(**kwargs)
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):
message = "Hello {}".format(self.name)
print(message)
#print(self.connection.host)
print(self.connection.uri)
#print(f"Retrieving info from {self.connection.host}")
lst = get_objects(server=server)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment