looping through two loops in bash scrip

I am trying to get partition from first for loop and use it in second loop to get directory but get an error on line 3 near ${partition}

 for partition in `hdfs dfs -ls -C /user/constantine/analytics/2018-01-3* | cut -d '/' -f 6 | uniq`
    do
            for filename `hdfs dfs -ls -C /user/constantine/analytics/{$partition}`
                    echo $filename
    done